Mixed integer linear programming trajectory generation for autonomous nap-of-the-earth flight in a threat environment

ABSTRACT

A method of planning a path of a vehicle comprises the steps of: defining a first plurality of constraints representing dynamics of the vehicle; defining a second plurality of constraints representing collisions with obstacles; defining a third plurality of constraints representing visibility to threats; and using the first, second and third plurality of constraints with mixed integer linear programming to generate a trajectory for a vehicle from a starting point to a destination point in an environment containing the obstacles and the threats.

STATEMENT OF GOVERNMENT INTEREST

This invention was made under contract number F33615-99-C-3613. The United States Government has rights in this invention under the contract.

FIELD OF THE INVENTION

This invention relates to methods for controlling autonomous vehicles, and more particularly to methods for controlling autonomous air vehicles for nap-of-the-earth flight.

BACKGROUND OF THE INVENTION

The technique of using mixed integer linear programming (MILP) for multi-vehicle path planning purposes in an obstacle environment has been recently developed. The technique has been proven useful at least in an experimental context and laboratory systems that implement MILP for path planning have been built as shown in M. G. Earl and R. Dandrea, “Modeling and control of a multi-agent system using mixed integer linear programming”, In Proceedings of the 41^(st) IEEE Conference on Decision and Control, December 2002.

A mixed integer linear programming (MILP) problem is very similar to a linear programming (LP) problem in that there is a set of linear objective functions and constraints, under which an optimal solution may be found. A MILP problem differs from an LP problem only in that some of the variables are restricted to be integers and thus the solution space for a MILP problem is a subset of that of a similar LP problem (the MILP problem without the integer restrictions). A major advantage of using MILP as a problem formulation is that fast, parallelizable, and commercially available MILP solvers such as ILOG CPLEX are readily available.

Mathematical programming modeling languages such as AMPL, have been developed to take advantage of higher level constructs in expressing a complex problem and the ability to be mapped to multiple solvers, much like a high level computer programming language such as C++ is more versatile for many programmers and can be mapped (or compiled) onto assembly languages for multiple platforms.

T. Schouwenaars, B. De Moor, E. Feron, and J. How, “Mixed integer programming for multi-vehicle path planning”, In 2001 European Control Conference, September 2001, describes a basic MILP problem formulation combining fuel-optimal path planning for multiple vehicles with double-integrator vehicle dynamics and obstacles in two-dimensional space.

T. Schouwenaars, E. Feron, and J. How, “Safe receding horizon path planning for autonomous vehicles”, In 40^(th) Annual Allerton Conference on Communication, Control, and Computing, October 2002, guarantees a priori safety for a MILP path planning implementation with fixed obstacles and limited planning horizon length by incorporating safe maneuvers.

J. Bellingham, A. Richards, and J. How, “Receding horizon control of autonomous aerial vehicles”, In 2002 American Control Conference, May 2002, augments a receding-horizon implementation of MILP path planning with a cost-to-go map in order to avoid entrapment behind relatively large obstacles.

T. Schouwenaars, B. Mettler, E. Feron, and J. How, “Hybrid architecture for full envelope autonomous rotorcraft guidance”, In Proceedings of the 59^(th) Forum of the American Helicopter Society, May 2003, allows the use of multiple linear time invariant (LTI) modes and discrete finite time maneuvers in a MILP path planning problem as a first step in providing full flight envelope trajectory planning.

The above references do not address path planning in an environment containing threats. There is a need for a method of generating air vehicle flight trajectories for flying over a terrain and avoiding obstacles and with multiple threats.

SUMMARY OF THE INVENTION

This invention provides a method of planning a path of a vehicle comprising the steps of: defining a first plurality of constraints representing dynamics of the vehicle; defining a second plurality of constraints representing collisions with obstacles; defining a third plurality of constraints representing visibility to threats; and using the first, second and third plurality of constraints with mixed integer linear programming to generate a trajectory for a vehicle from a starting point to a destination point in an environment containing the obstacles and the threats.

In another aspect, the invention provides a method of controlling a path of a vehicle, the method comprising the steps of: defining a first plurality of constraints representing dynamics of the vehicle; defining a second plurality of constraints representing collision constraints with obstacles; defining a third plurality of constraints representing visibility to threats; and using the first, second and third plurality of constraints and mixed integer linear programming to generate a set of control actions to move the vehicle from a starting point to a destination point.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic representation of terrain using triangulated irregular networks.

FIG. 2 is a schematic representation of an obstacle using terrain tiles.

FIGS. 3, 4 and 5 are a schematic representation of safe zones.

FIG. 6 is a schematic representation of a terrain flight trajectory.

FIG. 7 is a schematic representation of threat avoidance with multiple threats and obstacles.

FIG. 8 is a schematic representation of trajectories without terrain overlap.

FIG. 9 is a schematic representation of trajectories under a receding horizon.

FIG. 10 is a schematic representation of an exaggerated terrain overlap.

FIG. 11 is a schematic representation of pyramid used to explain the method of the invention.

FIG. 12 is a schematic representation of safe zones.

FIG. 13 is a schematic representation of threat avoidance with multiple threats and obstacles.

DETAILED DESCRIPTION OF THE INVENTION

This invention extends a recently developed approach to the optimal path planning of an autonomous vehicle in an obstacle field to three dimensions with specific applications to terrestrial navigation, with obstacle, terrain, and threat avoidance. This approach can be applied to a rotorcraft performing nap-of-the-earth flight in challenging terrain with multiple known surface threats, in both urban and non-urban type settings. Mixed Integer Linear Programming (MILP) is the underlying problem formulation, from which an optimal solution can be obtained through the use of a commercially available MILP solver such as CPLEX. The optimal solution obtained would be optimal in terms of a cost function specified in terms of fuel, time, altitude and threat exposure, and other predefined criteria. A receding horizon implementation of this MILP algorithm can be used to make it feasible to implement in real-time or near real-time. Estimates of the typical problem size and computation time are provided for a rotorcraft nap-of-the-earth flight scenario.

A standard mixed integer linear programming (MILP) problem has the following form: $\begin{matrix} {{\min\quad f\quad(x)} = {c^{T}x}} & (1) \end{matrix}$  b_(L)≦Ax≦b_(U)  (2) x_(L)≦x≦x_(U)  (3) where Aε

^(m×n)c,x,x_(L),x_(U)ε

^(n),b_(L),b_(U)ε

^(m) and a subset of x is restricted to be integers. For the constraints of equation (2), the rows corresponding to the portion(s) of x that are restricted to be integers are integer constraints, while the rest of the rows are continuous constraints.

An optimal solution x, if a feasible solution exists, is a vector of variables for which the value under the objective function (1) is smallest, such that x satisfies the constraints (2) and bounds (3). That is, for any other x*≠x, either f(x*)≧f(x), or x does not satisfy at least one of (2), (3), and the integer restriction.

Mixed integer linear programming is especially suited for path planning in an environment with obstacles because the continuous constraints can represent the dynamics of the vehicle, while the integer constraints can represent collision constraints with obstacles.

For linear, time invariant (LTI), continuous time plant dynamics: {dot over (s)}=A _(c) s+B _(c) u  (4) and the initial and final conditions are defined to be s₀ and s_(F), respectively.

In particular, and for the rest of this description, the plant dynamics consist of a double integrator model with acceleration as input: {umlaut over (x)}=u_(x) ÿ=u_(y) {umlaut over (z)}=u_(z)  (5)

By defining v_(x)={dot over (x)},v_(y)={dot over (y)},v_(z)={dot over (z)}, equations (5) can be rewritten in the form of (4) by setting s=[x y z v_(x) v_(y) v_(z)]^(T) and u=[u_(x) u_(y) u_(z)]^(T) to get $\overset{\bullet}{s} = {{\begin{bmatrix} 0 & I \\ 0 & 0 \end{bmatrix}s} + {\begin{bmatrix} 0 \\ I \end{bmatrix}u}}$

For the purpose of formulating a trajectory planning problem as an LP or MILP problem, the plant dynamics need to be discretized with a chosen period to yield: s[k+1]=As[k]+Bu[k]  (6)

Using equation (6) recursively, and assuming the notation s_(k)=s[k], u_(k)=u[k], then: s_(k)=A^(k)s₀+A^(k−1)Bu₀+ . . . +ABu_(k−2)+Bu_(k−1)  (7)

Assuming a problem with N time steps, then: s_(F)=s_(N)

Applying this to equation (7) yields a set of destination constraints: s _(F) −A ^(N) s ₀ =A ^(N-1) Bu ₀ + . . . +ABu _(N-2) +Bu _(N-1)  (8)

In the absence of other constraints, a solution to equation (8) is a set of N piecewise constant controls {u₀, . . . , u_(N-1)} that will steer the continuous system (5) from s₀ to s_(F) in N time periods.

Velocity constraints on v_(x), v_(y), v_(z) can be expressed as the following: v_(min)≦v_(k)≦v_(max)  (9) where: v=[v_(x)v_(y)v_(z)]^(T), v_(k)=v[k]=Vs_(k), V=[0I], v_(min)=[v_(x,min)v_(y,min)v_(z,min)]^(T), v_(max)=[v_(x,max)v_(y,max)v_(z,max)]^(T)

Applying equations (7) to (9) to obtain the velocity constraints for time kε{0, . . . , N−1}: v _(min) −VA ^(k) s ₀ ≦VA ^(k-1) Bu ₀ + . . . +VABu _(k-2) +VBu _(k-1) ≦v _(max) −VA ^(k) s ₀  (10)

Control limits on (u_(x) u_(y) u_(z)) can be expressed as the following, for kε{0, . . . , N−1} u_(min)≦u_(k)≦u_(max)  (11)

-   -   where: u_(min)=[U_(x,min) u_(y,min) u_(z,min)]^(T),         u_(max)=[u_(x,max) u_(y,max) u_(z,max)]^(T)

For a solution that is both fuel and time optimal, we would like the objective function to be the following: $\begin{matrix} {{f\quad(x)} = {{\sum\limits_{k = 0}^{N - 1}\quad{r{u_{k}}_{1}}} + {\sum\limits_{k = 1}^{N - 1}\quad{q{{X_{k} - X_{F}}}_{1}}}}} & (12) \end{matrix}$ where: X=[x y z] ^(T) , X _(k) =X[k]=Ws _(k) , X _(F) =Ws _(F) , W=[10]

∥X_(k)−X_(F)∥₁ is the 1-norm distance in (x, y, z) between s_(k) and s_(F), and r and q are non-negative weight factors. The first and second term in (12) are known as fuel cost and non-arrival cost, respectively. The non-arrival cost in the objective function is the key to a minimum-time formulation.

Since a 1-norm function is not linear, additional slack variables v_(k) and w_(k) can be introduced to create the desired effect with the following constraints: −u _(k) ≦u _(k) ≦v _(k)  (13) −w _(k) ≦W _(sk) −W _(sF) ≦w _(k)  (14)

When the constraints (13) and (14) are combined with non-negative weights q and r, they also guarantee that v _(k) =∥u _(k)∥₁ and w _(k) =∥WS _(k) −WS _(F)∥₁ =∥X _(k) −X _(F)∥₁ respectively, in the optimal solution.

Constraints (13) can be decomposed into two separate inequalities as MILP constraints for kε{0, . . . , N−1}: u _(k) −u _(k)≦0, −u _(k) −u _(k)≦0  (15)

Similarly, constraints (14) can be decomposed into two separate inequalities, expanded out using equation (7), and written as MILP constraints for kε{1, . . . , N−1}: W(A ^(k-1) Bu ₀ + . . . +ABU _(k-2) +Bu _(k-1))−w _(k) ≦W(s _(F) −A ^(k) s ₀) −W(A ^(k-1) Bu ₀ + . . . +ABu _(k-2) +Bu _(k-1))−w _(k) ≦−W(s _(F) −A ^(k) s ₀)  (16)

The slack variables defined in (13) and (14), can be used to conveniently express the objective function (12) as: $\begin{matrix} {{f\quad(x)} = {{r{\sum\limits_{k = 0}^{N - 1}\quad v_{k}}} + {q{\sum\limits_{k = 1}^{N - 1}\quad w_{k}}}}} & (17) \end{matrix}$

The basic LP trajectory planning problem thus consists of the destination constraints (8), velocity constraints (10), slack variable constraints for energy (15) and time (16), control limits (11), and objective function (17). An optimal solution under these conditions is said to be a set of control actions that would take the system (5) from s₀ to s_(F) in N time periods with minimum cost as defined by (17).

The existing LP problem can be expanded to include obstacle collision constraints. It can be shown that for any arbitrary convex polyhedral bounded by n number of planes in 3-D, the interior of the polyhedral can be represented by the combination of the following set of inequalities: $\begin{matrix} \begin{matrix} {{{a_{1}x} + {b_{1}y} + {c_{1}z}} > d_{1}} \\ \vdots \\ {{{a_{n}x} + {b_{n}y} + {c_{n}z}} > d_{n}} \end{matrix} & (18) \end{matrix}$

The collision constraints requiring that s_(k) be outside the region defined by (18) can be rewritten as: $\begin{matrix} {{{\begin{bmatrix} a_{1} & b_{1} & c_{1} & 0 & 0 & 0 \\ \quad & \quad & \vdots & \quad & \quad & \quad \\ a_{n} & b_{n} & c_{n} & 0 & 0 & 0 \end{bmatrix}s_{k}} - {M\begin{bmatrix} b_{k_{1}} \\ \vdots \\ b_{k_{n}} \end{bmatrix}}} \leq \begin{bmatrix} d_{1} \\ \vdots \\ d_{n} \end{bmatrix}} & (19) \\ {{b_{k_{1}} + \cdots + b_{k_{n}}} \leq {n - 1}} & (20) \end{matrix}$ where M>>0, is an arbitrarily large number, and b_(k) ₁ are binary variables. The constraints (19) and (20) essentially negate at least one set of the inequalities in (18) and force s_(k) to be outside the region defined by (18). By writing (19) in short form as θ_(i) s _(k) −Mb _(k) ^(i)≦θ′_(i) for each obstacle i, and by substituting s_(k) with equation (7), the final MILP obstacle collision constraints for obstacle iε{1, . . . , p} would be, for kε{1, . . . , N}: θ_(i)(A ^(k-1) Bu ₀ + . . . +ABu _(k−2) +Bu _(k-1))−Mb _(k) ^(i)≦θ′_(i)−θ_(i) A ^(k) s ₀ [1 . . . 1]_(1×n) _(i) b _(k) ^(i) ≦n _(i)−1 0≦b_(k) ^(i)≦1 b_(k) ^(i)εintegers  (21)

The MILP trajectory planning problem with obstacle avoidance includes the constraints in the basic LP trajectory planning problem, i.e. expressions (8), (10), (11), (15), (16), and (17), plus obstacle collision constraints (21).

Assuming that N is the number of time steps, the above MILP problem will consist of $6 + {3N*2} + {3\quad\left( {N - 1} \right)*2} + {3N} + {N{\sum\limits_{i = 1}^{p}\quad\left( {n_{i} + 1} \right)}}$ constraints, 3N+3N+3(N−1) continuous variables, and $N{\sum\limits_{i = 1}^{p}\quad n_{i}}$ discrete variables, where p is the number of obstacles and n_(i) is the number of planes that define obstacle i.

The MILP trajectory planning problem can be implemented in a receding horizon framework to reduce the computational effort required to solve the MILP problem by reducing the problem size. Receding horizon trajectory planning with obstacle avoidance can be implemented as a series of MILP problems. Instead of planning the entire optimal trajectory from s₀ to s_(F), which may be located very far apart and may require many time steps to reach, the problem can be broken down into many subproblems of smaller size with fewer time steps N, such that within each subproblem there is no longer the requirement to reach a particular destination state s_(F) (destination constraint (8)). Instead, the first subproblem uses s₀ as the initial state, and only a subset of the planned trajectory from the first subproblem is executed (i.e. only s₁ and s₂) Then s₂ from the first subproblem is used as the initial state in the second subproblem, and so on, until a subproblem with s_(N)=s_(F) is calculated, in which case the entire trajectory of the subproblem is executed and the vehicle reaches the destination.

In order to encourage the overall trajectory, as well as the individual trajectories of each subproblem, to get closer to the destination, an additional term known as “terminal cost” enters the objective function $\begin{matrix} {{f\quad(x)} = {{\sum\limits_{k = 0}^{N - 1}\quad{r{u_{k}}_{1}}} + {\sum\limits_{k = 1}^{N - 1}\quad{q{{X_{k} - X_{F}}}_{1}}} + {p{{X_{N} - X_{F}}}_{1}}}} & (22) \end{matrix}$

The objective function thus becomes: $\begin{matrix} {{f\quad(x)} = {{r{\sum\limits_{k = 0}^{N - 1}\quad\upsilon_{k}}} + {q{\sum\limits_{k = 1}^{N - 1}\quad w_{k}}} + {pw}_{N}}} & (23) \end{matrix}$ and to accommodate the term ∥X_(N)−X_(F)∥₁, an additional slack variable w_(N) is introduced according to equation (14) so that constraints (16) still hold but is now applied through the range kε{1, . . . , N−1}.

“Terrain flight” is the tactic of using the terrain's vegetation and man-made objects to degrade the enemy's ability to visually, optically, or electronically detect or locate the aircraft. Nap-of-the-Earth (NOE) flight is a category of terrain flight characterized by maneuvers as close to the earth's surface as vegetation, obstacles, or ambient light will permit. This invention provides a novel method for enabling autonomous NOE flight that not only avoids obstacles but also actively uses them for minimizing detection by known enemy elements.

Terrain flight can be considered to be a variation of obstacle avoidance, with some important differences: (1) obstacles are generally scattered in various locations, while terrain is constantly under the vehicle; (2) it usually suffices to avoid collision with the obstacles, but in terrain flight, the objective is to stay low and out of sight of the enemy. This invention approaches basic terrain flight by constructing the terrain as a series of obstacles that act as three-dimensional “floor tiles” that the vehicle travels over, while introducing an altitude cost to keep the trajectory close to the terrain: $\begin{matrix} {{f(x)} = {{\sum\limits_{k = 0}^{N - 1}{r{u_{k}}_{1}}} + {\sum\limits_{k = 1}^{N - 1}{q{{X_{k} - X_{F}}}_{1}}} + {p{{X_{N} - X_{F}}}_{1}} + {\sum\limits_{k = 1}^{N}{a_{z}z_{k}}}}} & (24) \end{matrix}$ where z_(k)=z[k]=Zs_(k), Z=[0 0 1 0 0 0] and a_(z) is a non-negative weight factor. To make the objective function (24) implementable in MILP, slack variables z_(k) and the following constraints can be introduced by substituting equation (7) in ZA ^(k-1) Bu ₀ + . . . +ZABu _(k−2) +ZBu _(k-1) −z _(k) =−ZA ^(k) s ₀  (25)

Together, expressions (24) and (25) associate a cost to the trajectory proportional to the altitude at each point. By tuning the weight factor a_(z) against other weight factors r, q, and p in the original objective function (22), NOE flight of varying aggressiveness can be achieved.

In one embodiment of the invention, the terrain can be represented as triangulated irregular networks (TIN), since it is a straightforward way of modeling grid-based terrain. TIN is simply a pattern of similarly oriented triangles that is laid on top of a regular square-based grid pattern, with an elevation assigned to each point on the grid, such as the one shown in FIG. 1. FIG. 1 is a schematic representation of terrain 10 using triangulated irregular networks. In the figures, a diamond represents a starting point and an * represents a destination.

A straightforward way of implementing terrain flight in MILP would be to model each triangle in a TIN terrain as an obstacle with three vertical side walls, each of which is positioned adjacent to and directly facing the side wall associated with an adjacent triangle, as illustrated in FIG. 2. FIG. 2 is a schematic representation of an obstacle 12 using terrain tiles.

The points s₀ and s_(F) would be positioned somewhere above the terrain and the trajectory would be required to avoid collision with the terrain while staying as close to the terrain as possible per the objective function.

The threats considered in this context are known as surface or ground threats such as surface-to-air missile (SAM) sites, anti-aircraft artillery (AAA) units, and radar sites. There are various approaches that deal with the problem of threat avoidance. In this broader context, MILP is considered to be unique as a mathematical programming tool because it allows the formulation of a threat avoidance problem that takes both obstacles and terrain into account, which is not the case in the other existing methods.

A key premise in this threat avoidance formulation is the assumptions of line-of-sight visibility and opaque objects. Threats are represented by individual points in space whose locations are known and are fixed to the surface of the terrain, although in general they can be fixed anywhere in space. Consider FIGS. 3, 4 and 5 where a threat and an obstacle are present. In FIGS. 3, 4 and 5, items 20, 22, 24, 26 and 28 are obstacles, and points 30, 32, 34 and 36 represent threat positions. The shaded areas 38, 40, 42, 44, 46, 48 and 50 are safe zones. The trajectory generation algorithm aims to take advantage of the “shadow” behind the obstacle and seeks to minimize visibility exposure to all known threats by preferentially selecting routes that are in the shadows as much as possible. This line-of-sight visibility assumption is equally applicable to all threats that use optical and radio-based detection mechanisms such as radar, infrared, and optical sensors. For the purpose of formulating a MILP problem, two types of threat avoidance are considered: absolute and relative. In absolute threat avoidance, visibility exposure to all threats is completely avoided, so that at no time will the vehicle be visible to any known threats. In relative threat avoidance, visibility exposure to all known threats is avoided as much as possible, but a balance is struck between threat exposure and other objective criteria, such as fuel consumption and timely arrival at a target. Because it is not often possible to achieve absolute threat avoidance in a realistic environment with multiple threats, only relative threat avoidance is considered in this description.

FIGS. 3, 4 and 5 are a schematic representation of safe zones. The area 52 with darker shading in FIG. 5 is technically in two different safe zones. This analogy can be extended to a scenario with multiple threats and multiple obstacles, such as the one shown in FIG. 4. In that case, there is one “shadow” corresponding to each combination of threat and obstacle. So for m obstacles and n threats, there are m×n shadows. However, as FIG. 5 shows, these shadows may partially or completely overlap one another, or in some cases, even eclipse or be eclipsed by another.

Theoretically, the MILP logic of threat avoidance can be implemented in two ways: (1) consider the shadows as “safe zones” and formulate the MILP problem to encourage travel within them, or (2) consider the non-shadow regions as “unsafe zones” and formulate the MILP problem to avoid them. For the second implementation, the unsafe zones can be treated as similar to obstacles in a sense that they should be avoided, but in a relative sense. A positive cost can be assigned to each time the trajectory intersects an unsafe zone. With safe zones, on the other hand, a negative cost can be assigned in a similar manner. Though the two approaches initially appear to be very similar, the safe zone formulation is easier to work with due to its inherent desirable geometrical as well as topological properties. As described above, the obstacles are assumed to be convex. Due to this convexity assumption, a safe zone is easily defined. Qualitatively speaking, it is bounded by (1) the set of “front faces” (the sides of an obstacle that are facing the threat), plus (2) the set of planes that intersect both (a) the threat (a point), and (b) the edges of these “front faces” that border the “back faces” (the sides that face away from the threat). FIG. 3 illustrates this in two dimensions. Notice that a corresponding safe zone in three dimensions (for a cube) would be a pyramid of infinite height, minus a smaller pyramid with the “front face” of the cube as its base and sharing the same top. In a single threat, multiple obstacle scenario, the region invisible to the threat, or the overall safe zone, is simply a union of all the safe zones associated with each obstacle and the threat. This holds true even if one obstacle partially or totally blocks another obstacle from view of the threat, such as the case shown in FIG. 5, because once we are inside one of the shadows, we are safe whether or not it is eclipsed by another shadow. Unsafe zones, on the other hand, do not have similar topological properties.

For multiple threats and multiple obstacles, there may exist a region in which one cannot be seen by any threats. This is defined as the intersection of sets of safe zones, with each set corresponding to a different threat, as the darkest region in FIG. 5 illustrates. However, these regions do not always exist, and are useful only for absolute threat avoidance, so they are not relevant to this description. To paint a more mathematical picture of what was just described, point-set topology notation can be used. Suppose there are t threats and o obstacles. There would be t×o safe zones, with each one associated with a single threat and a single obstacle. A safe zone can be labeled with subscript and superscript as in: S_(j) ^(i), where, iε{1, . . . , o} denotes the obstacle and, jε{1, . . . , t} denotes the threats. The safe zone corresponding to threat j would be the following: (S_(j) ¹∪ . . . ∪S_(j) ^(o))

Suppose a safe zone is a convex polyhedral bounded by n planes in three dimensions, and the interior of which is represented by the combination of the following set of inequalities: a ₁ x+b ₁ y+c ₁ z≦d ₁ • • • a _(n) x+b _(n) y+c _(n) z≦d _(n)  (26)

Suppose we have the following constraints: $\begin{matrix} {{{\begin{bmatrix} a_{1} & b_{1} & c_{1} & 0 & 0 & 0 \\ \quad & \quad & \vdots & \quad & \quad & \quad \\ a_{n} & b_{n} & c_{n} & 0 & 0 & 0 \end{bmatrix}s_{k}} - {M\begin{bmatrix} b_{k_{1}} \\ \vdots \\ b_{k_{n}} \end{bmatrix}}} \leq \begin{bmatrix} d_{1} \\ \vdots \\ d_{n} \end{bmatrix}} & (27) \\ {{b_{k_{1}} + \cdots + b_{k_{n}} - {Mb}_{k}^{\prime}} \leq 0} & (28) \end{matrix}$ where M>>0 is an arbitrarily large number, and b_(k) _(i) and b′_(k) are binary variables.

It can be easily seen that b′_(k)=0 implies that s_(k) is located within the safe zone defined by (26).

By writing (27) in short form as: θ_(i,j) s _(k) −Mb _(k) ^(i,j)≦θ′_(i,j) for each obstacle i and threat j, and by substituting s_(k) with equation (7), the final MILP threat avoidance constraints for obstacles: iε{1, . . . , o} and threats: jε{1, . . . , t} would be, for kε{1, . . . , N}: θ_(i,j)(A ^(k-1) Bu ₀ + . . . +ABu _(k−2) +Bu _(k-1))−Mb _(k) ^(i,j)≦θ′_(i,j)−θ_(i,j) A ^(k) s ₀[1 . . . 1]_(1×n) _(i) b _(k) ^(i,j) −Mb′ _(k) ^(i,j)≦0  (29) 0≦b _(k) ^(i,j)≦1, 0≦b′ _(k) ^(i,j)≦1b _(k) ^(i,j) , b′ _(k) ^(i,j)εintegers b′ _(k) ^(1,j) + . . . +b′ _(k) ^(o,j) −Mb _(k) ^(j) ≦o−1  (30)

From the constraint (30), it can be seen that b_(k) ^(j)=0 implies that at least one member of the set {b′_(k) ^(1,j), . . . , b′_(k) ^(o,j)} is zero. That is, at time k, the trajectory is hidden from view from threat j behind at least one obstacle. This can be expressed as the following: b _(k) ^(j)=0s _(k)ε(S _(j) ¹ ∪ . . . ∪S _(j) ^(o))  (31)

We consider the constraints (29), (30) with an objective function with an additional term added to (24), with $\begin{matrix} {{a_{Tj} > {0\quad\text{:}}}{{f(x)} = {{\sum\limits_{k = 0}^{N - 1}{r{u_{k}}_{1}}} + {\sum\limits_{k = 1}^{N - 1}{q{{X_{k} - X_{F}}}_{1}}} + {p{{X_{N} - X_{F}}}_{1}} + {\sum\limits_{k = 1}^{N}{a_{z}z_{k}}} + {\sum\limits_{j = 1}^{t}{a_{T_{j}}{\sum\limits_{k = 1}^{N}b_{k}^{j}}}}}}} & (32) \end{matrix}$

Constraints (29), (30), (31), and (32) guarantee the following: b _(k) ^(j)=0s _(k)ε(S _(j) ¹ ∪ . . . ∪S _(j) ^(o))  (33)

To establish (33), it suffices to prove the converse of (31). The rationale is that if the trajectory at time k is truly invisible from threat j, or equivalently, s_(k)ε(S_(j) ¹∪ . . . ∪S_(j) ^(o)), then due to the positive cost associated with b_(k) ^(j)=1 in (32), the solution b_(k) ^(j)=0 would be preferred by the solver. Thus, through (29), (30), (31), and (32), we are essentially assigning a positive cost a_(Tj) for each time step k at which the trajectory is visible from threat j. This can be considered an objective penalty on visibility exposure to each separate threat. Notice that the threat exposure cost weight factor a_(Tj) is dependent on the threat j because we allow differential weighting of threats. Threats thought to be further away or of less important can be given a lower weight so that the visibility exposure to certain threats can be emphasized over that to other relatively minor threats.

The implementation of a MILP trajectory planning algorithm based on the problem formulation presented above, can now be described. In particular, the algorithm can use a MILP receding horizon method to generate a terrain-flight trajectory for a helicopter over a grid-based terrain. The first important step toward a realizable MILP generated trajectory is a realistic parametrization of the helicopter performance characteristics. Since we are using double integrator model (5) for vehicle dynamics, we need to specify the helicopter's velocity limits (9) and acceleration limits (11). If a more advanced vehicle model is used in place of (5), then one can more closely parametrize the helicopter characteristics. However, in a MILP problem formulation, the overall vehicle dynamics must be linear, and due to the fact that the equations of motion involves a nonlinear transformation between the body frame and inertial frame, we are largely restricted to modeling the vehicle in the inertial frame. Although it may be possible to derive a linear approximation of the nonlinear equations of motion, or any nonlinear equations for that matter, the technique involves the introduction of new variables that does not scale well with the problem and may lead to intractability. The second important consideration toward a successful MILP algorithm is the selection of weight values in the objective function (22). Because the objective function is the measure by which an optimal solution is determined, the weight values have great influence over the behavior of the optimal MILP trajectory. For each mission type, there is a unique set of weight values that are most suitable for the generation of the appropriate trajectory. For instance, a time-critical mission would have a very different set of weights than that of a fuel-critical mission. With a terrain flight formulation, the altitude weight must be chosen properly with relative to other weights to achieve the desired effect.

One embodiment of the invention uses a scenario in which a vehicle with dynamics (5) flies a NOE trajectory over a grid-based terrain with obstacles on top of that terrain, as FIG. 6 illustrates. The MILP problem can be constructed in a MATLAB environment, following the constraints and problem setup outlined above to define the composite vectors and matrices in equations (1), (2), and (3). Then, a text file in the mps format that describes the overall MILP problem is written, and it is read by the CPLEX MILP solver. After the optimal solution is computed, the result is loaded back into MATLAB for plotting and analysis. Since we are using a receding horizon method with a period of one time step, the MILP solver is called repeatedly at the end of each time step. We did not use the multi-resolution terrain triangulation techniques suggested above, but we predict that the application of the multi-resolution technique would yield a lower cost solution where for the same problem size and similar solve time, the NOE trajectory would be able to consider terrain features further away from the vehicle, and the resulting cost would be closer to the global optimum. An example scenario can demonstrate threat avoidance with multiple obstacles and multiple threats has been created. FIG. 7 shows threat avoidance with multiple threats 60 and 62, and obstacles 64, 66, 68, 70, 72 and 74. The optimal trajectory has minimal exposure to the threats (stars).

Due to the relative complexity in constructing, visualizing, and analyzing the threat avoidance scenario, the example shown in FIG. 7 is intentionally kept very simple, although the MILP solvers are capable of solving more complicated scenarios within a reasonable time. The production of a MILP trajectory such as the one shown in FIGS. 6 and 7, presents a few interesting challenges worthy of mention here. First, since the solution we look for is usually the optimal one, when the MILP problem is not properly constrained, the optimal solution may exhibit undesirable behavior, for instance because the terrain map is defined as a series of triangle “floor tiles” with side walls, the collision constraints in MILP is defined such that a trajectory point on the surface of an obstacle is not considered a collision, without a slight overlap between the triangle “floor tiles.” FIG. 8 shows valid trajectories 80 for underconstrained MILP problems without terrain overlap, that go under and between the terrain obstacles. FIG. 9 shows a trajectory 82 under a receding horizon with high altitude cost and no bounding walls. A trajectory shown in FIG. 8 is considered valid by the MILP solver since it does not violate any collision constraints. The apparent solution is to include a finite but small overlap in the definition of terrain blocks, as illustrated in FIG. 10. Similarly, a trajectory in the form of FIG. 9 is equally valid because the solution runs along the edge of the terrain blocks and does not violate any collision constraints. This type of solution is common in a receding horizon context with a high altitude weight value, because seeking a lower altitude would have a higher reward than getting closer to the destination. The solution is to construct four barrier planes surrounding the terrain map. Finally, for a threat avoidance such as the one shown in FIG. 7, due to the way that the obstacles and safe zones are modeled as (18) and (26), respectively, the “front faces,” or the surfaces of the obstacles that face the threat, are considered to be both inside the safe zones and outside the obstacles at the same time. The solution to this problem is to move the planar “front faces” of the safe zone slightly inward.

Up to this point, this description has not yet addressed how one goes about implementing the MILP planned trajectory such as the trajectory 52 shown FIG. 6, on an actual flight trajectory. This is where we need to consider the interfaces between MILP and other components in the actual flight hardware and software. In the above description, we have briefly considered the time discretization of a continuous time LTI system leading to equation (6). The issue that the time discretization introduces is the lack of continuity between the points in the planned trajectory. As a result, the obstacle as well as other constraints that are specified in the problem formulation are only enforced at these collocation points in the planned trajectory, and not in-between. In the case of obstacle avoidance, in particular, an optimal solution tends to be one that barely skirts the obstacles in order to minimize the objective function, as FIG. 7 illustrates. Therefore, if one were to follow a series of straight-lines that connect the collocation points, one is likely to collide with the obstacles. The solution to the problem lies in modeling the obstacles as larger than their actual sizes to account for the distance between the collocation points. This technique also addresses a similar issue that arises for a vehicle that is not a point mass. Each obstacle can be similarly expanded according to the dimensions of the vehicle. In addition, in a threat avoidance formulation, one must take care to expand the boundaries of the obstacles while at the same time contract the boundaries of the safe zones by the same amount, the logic being that a non-point-mass vehicle makes it easier to collide with obstacles and more difficult to evade detection. In a more advanced implementation, the vehicle would have one dimension for obstacle avoidance purposes and a separate and smaller one for threat avoidance.

Another fundamental issue that arises is the mechanism with which a vehicle follows the trajectory produced by the MILP problem. This issue is closely related to the selection of the length of period for time discretization, whose tradeoffs are an increased problem size for the same planning horizon vs. a sparser separation of trajectory points. The simplest way to implement a MILP trajectory is to have a waypoint follower track the planned trajectory points one after another. A more advanced technique would involve a nonlinear outer loop that considers the equations of motion as well as the dynamics of the vehicle. We believe that a combination of this advanced nonlinear technique together with a MILP-based approach to path planning provides the best overall closed-loop solution for autonomous nap-of-the-earth flight. An important element of the interface between the MILP path planner and other system components is the input to the MILP path planner. Since the algorithm presented in this description primarily performs the obstacle avoidance function, there must be means to incorporate obstacle data into a MILP-based path planner so that the appropriate MILP problem can be constructed. Most likely, the information would come from an off-line database, processed data from an optical sensor, or a combination of both. However, it is paramount for any constraints to a MILP problem to be as relevant as possible. Therefore, there must be methods devised specifically to select the obstacles that are most relevant to the current MILP problem, that allows a tradeoff of problem size with levels of detail in modeling the environment.

This invention extends a basic three-dimensional MILP obstacle avoidance path planning algorithm to perform terrain flight where staying close to the terrain has just as much priority as avoiding collision with obstacles, and introduces a novel threat avoidance formulation designed to minimize visibility exposure to known threats through proper path planning. Examples of MILP generated trajectories flying over a terrain and avoiding obstacles in both a fixed and receding horizon context have been described, as well as a threat avoidance scenario with multiple threats and obstacles.

The described embodiment of this invention uses a receding horizon approach to solve longer timescale MILP trajectory planning problem, but is restricted to a single vehicle with static obstacles and terrain in three dimensions, and does not have special means to avoid entrapment behind large obstacles. Constraints to the problem have been expressed explicitly in matrix form.

An example problem formulation for optimal trajectory generation in terms of a Mixed Integer Linear Program (MILP) will now be described. We first formulate a simple optimal trajectory generation problem in MILP, then build on it to expand the scope of our problem to include receding horizon, nap-of-the-earth flight, visibility constraints, and safety guarantees. We also include a description of an algorithm to calculate visibility regions.

The Basic Trajectory Planning LP Problem starts with approximate linear plant dynamics: $\begin{bmatrix} \overset{.}{x} \\ \overset{.}{y} \\ \overset{.}{z} \\ {\overset{.}{\upsilon}}_{x} \\ {\overset{.}{\upsilon}}_{y} \\ {\overset{.}{\upsilon}}_{z} \end{bmatrix} = {{\begin{bmatrix} 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix}\begin{bmatrix} x \\ y \\ z \\ \upsilon_{x} \\ \upsilon_{y} \\ \upsilon_{z} \end{bmatrix}} + {\begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \\ 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}\begin{bmatrix} u_{x} \\ u_{y} \\ u_{z} \end{bmatrix}}}$

The problem is formulated as a fixed arrival time problem. Pick a time step ts=TotalTime=N, where N is the number of time steps, and TotalTime is the time in which the vehicle will be driven from its initial state to final state. Then discretize the above dynamics so that: s[k+1]=As[k]+Bu[k] where: ${s = \begin{bmatrix} x \\ y \\ z \\ \upsilon_{x} \\ \upsilon_{y} \\ \upsilon_{z} \end{bmatrix}},{u = \begin{bmatrix} u_{x} \\ u_{y} \\ u_{z} \end{bmatrix}}$

Based on the following initial and final constraints: s₀=[x₀ y₀ z₀ v_(x) ₀ v_(y) ₀ v_(z) ₀ ]^(T) s_(F)=[x_(F) y_(F) z_(F) v_(x) _(F) v_(y) _(F) v_(z) _(F) ]^(T) and assuming the notation s_(k)=s[k]; u_(k)=u[k−1], we have the following set of equations: s₁ = As₀ + Bu₁ s₂ = A²s₀ + ABu₁ + Bu₂ s₃ = A³s₀ + A²Bu₁ + ABu₂ + Bu₃   ⋮ s_(k) = A^(k)s₀ + A^(k − 1)Bu₁ + ⋯ + ABu_(k − 1) + Bu_(k)

Since s_(N)=s_(F), we have: S _(F) =A ^(N) s ₀ +A ^(N-1) Bu ₁ + . . . +ABu _(N-1) +Bu _(N)

Or in matrix form: $\begin{matrix} \underset{︸}{\left\lbrack {A^{N - 1}B\quad\cdots\quad{AB}\quad B} \right\rbrack} & \underset{︸}{\begin{bmatrix} u_{1} \\ {\quad\vdots} \\ u_{N} \end{bmatrix}} & = & \underset{︸}{s_{F} - {A^{N}s_{0}}} \\ D_{A} & u & = & D_{B} \end{matrix}$

Next consider the Energy Cost Function Slack Variables. The standard linear programming (LP) problem has the following form: ${\min\limits_{x}{f(x)}} = {c^{T}x}$ b_(L) ≤ Ax ≤ b_(U) x_(L) ≤ x ≤ x_(U) but so far we have only derived the following: D_(B)≦D_(A)u≦D_(B)

One way to implement a minimum-time, minimum energy function is to define the cost function as: $\begin{matrix} {{f(x)} = {{r\left( {{u_{1}}_{1} + \cdots + {u_{N}}_{1}} \right)} + {q\left( {{d_{1}\left( {s_{1},s_{F}} \right)} + \cdots + {d_{1}\left( {s_{N - 1},s_{F}} \right)}} \right)}}} \\ {= {{r\left( {{\begin{matrix} u_{1\quad x} \\ u_{1\quad y} \\ u_{1\quad z} \end{matrix}}_{1} + \cdots + {\begin{matrix} u_{Nx} \\ u_{Ny} \\ u_{Nz} \end{matrix}}_{1}} \right)} + {q\left( {{\begin{matrix} {x_{1} - x_{F}} \\ {y_{1} - y_{F}} \\ {z_{1} - z_{F}} \end{matrix}}_{1} + \cdots + {\begin{matrix} {x_{N - 1} - x_{F}} \\ {y_{N - 1} - y_{F}} \\ {z_{N - 1} - z_{F}} \end{matrix}}_{1}} \right)}}} \\ {= {{r\left( {{u_{1x}} + {u_{1y}} + {u_{1z}} + \cdots + {u_{Nx}} + {u_{Ny}} + {u_{Nz}}} \right)} +}} \\ {q\left( {{{x_{1} - x_{F}}} + {{y_{1} - y_{F}}} + {{z_{1} - z_{F}}} + \cdots + {{x_{N - 1} - x_{F}}} +} \right.} \\ \left. {{{y_{N - 1} - y_{F}}} + {{z_{N - 1} - Z_{F}}}} \right) \end{matrix}$ where: d₁(s₁, s₂) is the 1-norm distance between 2 points.

One way to implement such an energy function as a linear function is to introduce slack variables w and v such that ∀iε{1 . . . N}, jε{1 . . . N−1}, kε{x,y,z}: −v _(ik) ≦u _(ik) ≦v _(ik) −w _(jk) ≦s _(jk) −s _(Fk) ≦w _(jk) (note: s_(ix)=x_(i), s_(iy)=y_(i), s_(iz)=z_(i))

This essentially makes, ∀iε{1 . . . N}, jε{1 . . . N−1}, kε{x,y,z}, v _(ik) ≧∥u _(ik)∥≧0 w _(jk) ≧∥s _(jk) −s _(Fk)∥≧0

By making the cost vector and state vector: ${c = {\begin{bmatrix} 0_{3 \times 1} \\ \vdots \\ 0_{3 \times 1} \\ r_{3 \times 1} \\ \vdots \\ r_{3 \times 1} \\ q_{3 \times 1} \\ \vdots \\ q_{3 \times 1} \end{bmatrix} = \begin{bmatrix} 0_{3N \times 1} \\ r_{3N \times 1} \\ q_{3{({N - 1})} \times 1} \end{bmatrix}}},{x = \begin{bmatrix} u_{1} \\ \vdots \\ u_{N} \\ \upsilon_{1} \\ \vdots \\ \upsilon_{N} \\ w_{1} \\ \vdots \\ w_{N - 1} \end{bmatrix}}$

We are essentially minimizing v_(ik) and w_(ik) such that v _(ik) =∥u _(ik)∥ and w _(ik) =∥s _(ik) −s _(Fk)∥, or equivalently, $\upsilon_{i} = {{{\begin{matrix} u_{ix} \\ u_{iy} \\ u_{iz} \end{matrix}}_{1}{and}\quad w_{i}} = {{\begin{matrix} {x_{i} - x_{F}} \\ {y_{i} - y_{F}} \\ {z_{i} - z_{F}} \end{matrix}}_{1}.}}$

Therefore we have: $\begin{matrix} {{f\quad(x)} = {c^{T}x}} \\ {= {{r\quad\left( {\upsilon_{1} + \cdots + \upsilon_{N}} \right)} + {q\quad\left( {w_{1} + \cdots + w_{N - 1}} \right)}}} \\ {= {{r\quad\left( {{\begin{matrix} u_{1x} \\ u_{1y} \\ u_{1z} \end{matrix}}_{1} + \cdots + {\begin{matrix} u_{Nx} \\ u_{Ny} \\ u_{Nz} \end{matrix}}_{1}} \right)} +}} \\ {q\quad\left( {{\begin{matrix} {x_{1} - x_{F}} \\ {y_{1} - y_{F}} \\ {z_{1} - z_{F}} \end{matrix}}_{1} + \cdots + {\begin{matrix} {x_{N - 1} - x_{F}} \\ {y_{N - 1} - y_{F}} \\ {z_{N - 1} - z_{F}} \end{matrix}}_{1}} \right)} \\ {= {{r\left( {{u_{1}}_{1} + \cdots + {u_{N}}_{1}} \right)} + {q\quad\left( {{d_{1}\left( {s_{1},s_{F}} \right)} + \cdots + {d_{1}\left( {s_{N - 1},s_{F}} \right)}} \right)}}} \end{matrix}$

To actually implement the above cost function in matrix form, we observe that for the following inequalities: −v _(ik) ≦u _(ik) ≦v _(ik) −w _(jk) ≦s _(jk) −s _(Fk) ≦w _(jk)

The equivalent is: u _(ik) −v _(ik)≦0 −u _(ik) −v _(ik)≦0 (s _(jk) −s _(Fk))−w _(jk)≦0 −(s _(jk) −s _(Fk))−w _(jk)≦0

If we sum up k:∀kε{x,y}, then we have: u _(i) −v _(i)≦0_(3×1) −u _(i) −v _(i)≦0_(3×1) (Ws _(j) −Ws _(F))−w _(j)≦0_(3×1) −(Ws _(j) −Ws _(F))−w _(j)≦0_(3×1) where $W = \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 \end{bmatrix}$

Since we know: s _(k) =A ^(k) s ₀ +A ^(k-1) Bu ₁ + . . . +ABu _(k-1) +Bu _(k)

We have, after some rearrangements: u _(i) −v _(i)≦0_(3×1) −u _(i) −v _(i)≦0_(3×1) (WA ^(j-1) Bu ₁ + . . . +WABu _(j-1) +WBu _(j))−w _(j) ≦W(s _(F) −A ^(j) s ₀) −(WA ^(j-1) Bu ₁ + . . . +WABu _(j-1) +WBu _(j))−w _(j) ≦−W(s _(F) −A ^(j) s ₀)

Or in matrix form: ${{\left\lbrack \quad\begin{matrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{matrix} \right\rbrack\left\lbrack \quad\begin{matrix} u_{1} \\ \vdots \\ u_{N} \end{matrix} \right\rbrack} - {\begin{bmatrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{bmatrix}\left\lbrack \quad\begin{matrix} \upsilon_{1} \\ \vdots \\ \upsilon_{N} \end{matrix} \right\rbrack}} \leq {\quad{{\begin{bmatrix} 0_{3 \times 1} \\ \vdots \\ 0_{3 \times 1} \end{bmatrix} - {\left\lbrack \quad\begin{matrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{matrix}\quad \right\rbrack\left\lbrack \quad\begin{matrix} u_{1} \\ \vdots \\ u_{N} \end{matrix} \right\rbrack} - {\left\lbrack \quad\begin{matrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{matrix}\quad \right\rbrack\left\lbrack \quad\begin{matrix} \upsilon_{1} \\ \vdots \\ \upsilon_{N} \end{matrix} \right\rbrack}} \leq {\left\lbrack \quad\begin{matrix} 0_{3 \times 1} \\ \vdots \\ 0_{3 \times 1} \end{matrix} \right\rbrack{\quad{{{\begin{bmatrix} {W\quad B} & \cdots & 0 & 0 \\ \vdots & ⋰ & 0 & 0 \\ {W\quad A^{N - 2}B} & \cdots & {W\quad B} & 0 \end{bmatrix}\left\lbrack \quad\begin{matrix} u_{1} \\ \vdots \\ u_{N} \end{matrix} \right\rbrack} - {\begin{bmatrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{bmatrix}\begin{bmatrix} w_{1} \\ \vdots \\ w_{N - 1} \end{bmatrix}}} \leq {\quad{\begin{bmatrix} {W\quad\left( {s_{F} - {As}_{0}} \right.} \\ \vdots \\ {W\quad\left( {s_{F} - {A^{N - 1}s_{0}}} \right.} \end{bmatrix} - {\begin{bmatrix} {W\quad B} & \cdots & 0 & 0 \\ \vdots & ⋰ & 0 & 0 \\ {W\quad A^{N - 2}B} & \cdots & {W\quad B} & 0 \end{bmatrix}\left\lbrack \quad\begin{matrix} u_{1} \\ \vdots \\ u_{N} \end{matrix} \right\rbrack} - {\quad{{\begin{bmatrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{bmatrix}\begin{bmatrix} w_{1} \\ \vdots \\ w_{N - 1} \end{bmatrix}} \leq {- \begin{bmatrix} {W\quad\left( {s_{F} - {As}_{0}} \right.} \\ \vdots \\ {W\quad\left( {s_{F} - {A^{N - 1}s_{0}}} \right.} \end{bmatrix}}}}}}}}}}}$

If we define: ${W_{A} = \begin{bmatrix} {W\quad B} & \cdots & 0 & 0 \\ \vdots & ⋰ & 0 & 0 \\ {W\quad A^{N - 2}B} & \cdots & {W\quad B} & 0 \end{bmatrix}},{W_{B} = \begin{bmatrix} {W\quad\left( {s_{F} - {As}_{0}} \right)} \\ \vdots \\ {W\quad\left( {s_{F} - {A^{N - 1}s_{0}}} \right)} \end{bmatrix}}$ ${u = \begin{bmatrix} u_{1} \\ \vdots \\ u_{N} \end{bmatrix}},{\upsilon = \begin{bmatrix} \upsilon_{1} \\ \vdots \\ \upsilon_{N} \end{bmatrix}},{w = \begin{bmatrix} w_{1} \\ \vdots \\ w_{N - 1} \end{bmatrix}},{x = \begin{bmatrix} u \\ \upsilon \\ w \end{bmatrix}}$

And introduce an upper bound u_(max) to u such that ∀i, k: −u _(max) ≦u _(ik) ≦u _(max)

Then the LP problem formulation becomes: $\begin{matrix} {{\min\limits_{x}\quad{f\quad(x)}}\quad = {\begin{bmatrix} 0_{3N \times 1} \\ r_{3N \times 1} \\ q_{3{({N - 1})} \times 1} \end{bmatrix}^{T}\begin{bmatrix} u \\ \upsilon \\ w \end{bmatrix}}} \\ {\left\lbrack \quad\begin{matrix} {\quad D_{\quad B}} \\ {- \quad\infty_{\quad{3\quad N \times 1}}} \\ {- \quad\infty_{\quad{3\quad N \times 1}}} \\ {- \quad\infty_{\quad{3\quad{({N\quad - \quad 1})} \times 1}}} \\ {- \quad\infty_{\quad{3\quad{({N\quad - \quad 1})} \times 1}}} \end{matrix} \right\rbrack \leq \left\lbrack \quad\begin{matrix} {\quad D_{\quad A}} & 0 & 0 \\ {\quad I^{\quad{3\quad N \times 3\quad N}}} & {- \quad I^{\quad{3\quad N \times 3\quad N}}} & 0 \\ {- \quad I^{\quad{3\quad N \times 3\quad N}}} & {- \quad I^{\quad{3\quad N \times 3\quad N}}} & 0 \\ {\quad W_{\quad A}} & 0 & {- \quad I^{\quad{3\quad{({N\quad - \quad 1})} \times 3\quad{({N\quad - \quad 1})}}}} \\ {- \quad W_{\quad A}} & 0 & {- \quad I^{\quad{3\quad{({N\quad - \quad 1})} \times 3\quad{({N\quad - \quad 1})}}}} \end{matrix} \right\rbrack} \\ {\left\lbrack \quad\begin{matrix} u \\ \upsilon \\ w \end{matrix} \right\rbrack \leq \left\lbrack \quad\begin{matrix} {\quad D_{\quad B}} \\ {\quad 0_{\quad{3\quad N \times 1}}} \\ {\quad 0_{\quad{3\quad N \times 1}}} \\ {\quad W_{\quad B}} \\ {- \quad W_{\quad B}} \end{matrix}\quad \right\rbrack} \\ {\left\lbrack \quad\begin{matrix} {- u_{\max\quad 3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3{({N - 1})} \times 1}} \end{matrix} \right\rbrack \leq \left\lbrack \quad\begin{matrix} u \\ \upsilon \\ w \end{matrix} \right\rbrack \leq \begin{bmatrix} u_{\max\quad 3N \times 1} \\ \infty_{3N \times 1} \\ \infty_{3{({N - 1})} \times 1} \end{bmatrix}} \end{matrix}$

The velocity constraints consist of an octagon-shaped bound on the velocity on the x-y plane and a max bound on the z component: −v _(h,max) ≦v _(x) [k]≦v _(h,max) −v _(h,max) ≦v _(y) [k]≦v _(h,max) −v _(z,max) ≦v _(z) [k]≦v _(z,max) −√{square root over (2)}v _(h,max) ≦v _(x) [k]+v _(y) [k]≦√{square root over (2)}v _(h,max) −√{square root over (2)}v _(h,max) ≦v _(x) [k]−v _(y) [k]≦√{square root over (2)}v _(h,max)

Since v_(x)[k]=[0 0 0 1 0 0]s_(k) v_(y)[k]=[0 0 0 0 1 0]s_(k) v_(z)[k]=[0 0 0 0 0 1]s_(k) we can have the following constraints: ${- \begin{bmatrix} \upsilon_{h,\max} \\ \upsilon_{h,\max} \\ \upsilon_{z,\max} \\ \upsilon_{h,\max} \\ \upsilon_{h,\max} \end{bmatrix}} \leq {\begin{bmatrix} 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} & 0 \\ 0 & 0 & 0 & \frac{1}{\sqrt{2}} & {- \frac{1}{\sqrt{2}}} & 0 \end{bmatrix}\quad s_{k}} \leq \begin{bmatrix} \upsilon_{h,\max} \\ \upsilon_{h,\max} \\ \upsilon_{z,\max} \\ \upsilon_{h,\max} \\ \upsilon_{h,\max} \end{bmatrix}$

We set: ${V = \begin{bmatrix} 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} & 0 \\ 0 & 0 & 0 & \frac{1}{\sqrt{2}} & {- \frac{1}{\sqrt{2}}} & 0 \end{bmatrix}}\quad,{V_{\max} = \begin{bmatrix} \upsilon_{h,\max} \\ \upsilon_{h,\max} \\ \upsilon_{z,\max} \\ \upsilon_{h,\max} \\ \upsilon_{h,\max} \end{bmatrix}}$

Since we know: s _(k) =A ^(k) s ₀ +A ^(k-1) Bu ₁ + . . . +ABu _(k-1) +Bu _(k)

We have, for each time k: −V _(max) ≦VA ^(k) s ₀ +VA ^(k-1) Bu ₁ + . . . +VABu _(k-1) +VBu _(k) ≦V _(max)

Or in matrix form after rearrangements: ${{- V_{\max}} - {V\quad A^{k}s_{0}}} \leq {\left\lbrack {V\quad A^{k - 1}B\quad\cdots\quad V\quad{AB}\quad V\quad{Bu}_{k}} \right\rbrack\begin{bmatrix} u_{1} \\ \vdots \\ u_{k} \end{bmatrix}} \leq {V_{\max} - {V\quad A^{k}s_{0}}}$

The composite form would be: $\begin{matrix} {\begin{bmatrix} {{- V_{\max}} - {V\quad{As}_{0}}} \\ \vdots \\ {{- V_{\max}} - {V\quad A^{N}s_{0}}} \end{bmatrix} \leq \quad{\begin{bmatrix} {V\quad B} & 0 & \cdots & 0 \\ {V\quad{AB}} & {V\quad B} & ⋰ & 0 \\ \vdots & \quad & ⋰ & 0 \\ {V\quad A^{N - 1}B} & \cdots & {V\quad{AB}} & {V\quad B} \end{bmatrix}\left\lbrack \quad\begin{matrix} u_{1} \\ \vdots \\ u_{k} \end{matrix} \right\rbrack} \leq {\quad{\left\lbrack \quad\begin{matrix} {V_{\max} - {V\quad{As}_{0}}} \\ \vdots \\ {V_{\max} - {V\quad A^{N}s_{0}}} \end{matrix} \right\rbrack\quad}}} & \quad \end{matrix}$

Or in short form: V_(B) _(L) ≦V_(A)u≦V_(B) _(U)

Next consider the Obstacle Integer Constraints. Assume a rectangular box in 3-D defined by: x_(min)≦x≦x_(max) y_(min)≦y≦y_(max) z_(min)≦z≦z_(max)

We introduce binary variables be b_(*)ε{0, 1} and a number M>>0 sufficiently large such that: x−Mb _(x) _(min) ≦x _(min) y−Mb _(y) _(min) ≦y _(min) z−Mb _(z) _(min) ≦z _(min) −x−Mb _(x) _(max) ≦−x _(max) −y−Mb _(y) _(max) ≦−y _(max) −z−Mb _(z) _(max) ≦−z _(max) b _(x) _(min) +b _(y) _(min) +b _(z) _(min) +b _(x) _(max) +b _(y) _(max) +b _(z) _(max) ≦5

The above constraints ensure that (x, y, z) is outside the box because the last inequality requires at least one of the binary variables b_(*) to be zero, which negates at least one of the inequalities that we established for a point to be inside the box, which also implies that the point (x, y, z) lies outside at least one of the six box boundaries.

The object above is described by 6 Euclidean planar inequalities. The above concept can be generalized to an object that may be defined by non-Euclidean planar inequalities. A non-Euclidean plane in 3-D can be described by the following equation: z=ax+by+d

We can turn the non-Euclidean planar inequalities into integer obstacle constraints: z≦ax+by+d _(min) −ax−by+z−Mb _(d) _(min) ≦d _(min) z≧ax+by+d _(max) ax+by−z−Mb _(d) _(max) ≦−d _(max)

For ease of manipulation, we turn the Euclidean as well as non-Euclidean inequalities described above into matrix form by introducing the following auxiliary matrices and variables: θ_(x) _(min) =[1 0 0 0 0 0], θ′_(x) _(min) =x_(min) θ_(x) _(max) =[−1 0 0 0 0 0], θ′_(x) _(max) =−x_(max) θ_(y) _(min) =[0 1 0 0 0 0], θ′_(y) _(min) =y_(min) θ_(y) _(max) =[0 −1 0 0 0 0], θ′_(y) _(max) =−y_(max) θ_(z) _(min) =[0 0 1 0 0 0], θ′_(z) _(min) =z_(min) θ_(z) _(max) =[0 0 −1 0 0 0], θ′_(z) _(max) =−z _(max) θ_(d) _(min) =[−a −b 1 0 0 0], θ′_(d) _(min) =d _(min) θ_(d) _(max) =[a b −1 0 0 0], θ′_(d) _(max) =−d _(max) such that for any n-sided arbitrary convex polyhedral at time k, we have the following inequalities: $\begin{matrix} {{\theta_{1}s_{k}} - {Mb}_{k_{1}}} & \leq & \theta_{1}^{\prime} \\ \quad & \vdots & \quad \\ {{\theta_{n}s_{k}} - {Mb}_{k_{n}}} & \leq & \theta_{n}^{\prime} \\ {b_{k_{1}} + \cdots + b_{k_{n}}} & \leq & {n - 1} \end{matrix}$

If we set: ${\theta = \begin{bmatrix} \theta_{1} \\ \vdots \\ \theta_{n} \end{bmatrix}},{b_{k} = \begin{bmatrix} b_{k_{1}} \\ \vdots \\ b_{k_{n}} \end{bmatrix}},{\theta^{\prime} = \begin{bmatrix} \theta_{1}^{\prime} \\ \vdots \\ \theta_{n}^{\prime} \end{bmatrix}}$

The above inequalities become: θs _(k) −Mb _(k)≦θ′ b _(k) ₁ + . . . +b _(k) _(n) ≦n−1

We illustrate the above with a simple example. Suppose we have a pyramid (n=5) defined by the following inequalities (as shown in FIG. 11): z<−x+1 z<x+1 z<−y+1 z<y+1 z>0

For a point (x, y, z) to be outside the pyramid, at least 4 of the following 5 inequalities must be true: z≧−x+1 z≧x+1 z≧−y+1 z≧y+1 z≦0 we have the following constraints: −x−z−Mb ₁≦−1 x−z−Mb ₂≦−1 −y−z−Mb ₃≦−1 y−z−Mb ₄≦−1 z−Mb ₅≦0 b ₁ +b ₂ +b ₃ +b ₄ +b ₅≦5−1=4 b₁,b₂,b₃,b₄,b₅ε{0,1}

We can arrive at the same conclusion by using the auxiliary matrices and variables: ${\left. {z \geq {{- x} + 1}}\Leftrightarrow a \right. = {- 1}},{b = 0},{d_{\max} = \left. 1\Leftrightarrow{{{\underset{\theta_{1}}{\underset{︸}{\begin{bmatrix} {- 1} & 0 & {- 1} & 0 & 0 & 0 \end{bmatrix}}}\quad s_{k}} - {Mb}_{k_{1}}} \leq \underset{\underset{\theta_{1}^{\prime}}{︸}}{- 1}} \right.}$ ${\left. {z \geq {x + 1}}\Leftrightarrow a \right.\quad = 1},{b = 0},{d_{\max} = \left. 1\Leftrightarrow{{{\underset{\theta_{2}}{\underset{︸}{\begin{bmatrix} 1 & 0 & {- 1} & 0 & 0 & 0 \end{bmatrix}}}\quad s_{k}} - {Mb}_{k_{2}}} \leq \underset{\underset{\theta_{2}^{\prime}}{︸}}{- 1}} \right.}$ ${\left. {z \geq {{- y} + 1}}\Leftrightarrow a \right.\quad = 0},{b = {- 1}},{d_{\max} = \left. 1\Leftrightarrow{{{\underset{\theta_{1}}{\underset{︸}{\begin{bmatrix} 1 & {- 1} & {- 1} & 0 & 0 & 0 \end{bmatrix}}\quad}\quad s_{k}} - {Mb}_{k_{3}}} \leq \underset{\underset{\theta_{3}^{\prime}}{︸}}{- 1}} \right.}$ ${\left. {z \geq {y + 3}}\Leftrightarrow a \right.\quad = 0},{b = 1},{d_{\max} = \left. 1\Leftrightarrow{{{\underset{\theta_{4}}{\underset{︸}{\begin{bmatrix} 0 & 1 & {- 1} & 0 & 0 & 0 \end{bmatrix}}\quad}\quad s_{k}} - {Mb}_{k_{4}}} \leq \underset{\underset{\theta_{4}^{\prime}}{︸}}{- 1}} \right.}$ $\left. {z \leq 0}\Leftrightarrow z_{\min} \right. = \left. 0\Leftrightarrow{{{\underset{\underset{\theta_{5}}{︸}}{\begin{bmatrix} 0 & 0 & 1 & 0 & 0 & 0 \end{bmatrix}}\quad s_{k}} - {Mb}_{k_{5}}} \leq \quad\underset{\underset{\theta_{4}}{︸}}{0}} \right.$

In matrix form, this becomes: ${{\underset{\underset{\theta}{︸}}{\begin{bmatrix} {- 1} & 0 & {- 1} & 0 & 0 & 0 \\ 1 & 0 & {- 1} & 0 & 0 & 0 \\ 0 & {- 1} & {- 1} & 0 & 0 & 0 \\ 0 & 1 & {- 1} & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 \end{bmatrix}}\quad s_{k}} - {M\quad\underset{b_{k}}{\underset{︸}{\begin{bmatrix} b_{k_{1}} \\ b_{k_{2}} \\ b_{k_{3}} \\ b_{k_{4}} \\ b_{k_{5}} \end{bmatrix}}}}} \leq \underset{\theta^{\prime}}{\underset{︸}{\begin{bmatrix} {- 1} \\ {- 1} \\ {- 1} \\ {- 1} \\ 0 \end{bmatrix}}}$

Recall from previous sections that s _(k) =A ^(k) s ₀ +A ^(k-1) Bu ₁ + . . . +ABu _(k-1) +Bu _(k)

The inequality above can be rewritten as: θA ^(k) s ₀ +θA ^(k-1) Bu ₁ + . . . +θABu _(k-1) +θBu _(k) −Mb _(k)≦θ′

Or in matrix form: ${{\begin{bmatrix} {\theta\quad A^{k - 1}B} & \cdots & {\theta\quad{AB}} & {\theta\quad B} \end{bmatrix}\begin{bmatrix} u_{1} \\ \vdots \\ u_{k} \end{bmatrix}} - {Mb}_{k}} \leq {\theta^{\prime} - {\theta\quad A^{k}s_{0}}}$

If we sum up all the inequalities for k time steps, we have the following composite constraints: ${{{{{{\left\lbrack \quad\begin{matrix} {\theta\quad B} & 0 & \cdots & 0 \\ {\theta\quad{AB}} & {\theta\quad B} & ⋰ & \vdots \\ \vdots & \quad & ⋰ & 0 \\ {\theta\quad A^{N\quad - \quad 1}\quad B} & \cdots & {\theta\quad{AB}} & {\theta\quad B} \end{matrix} \right\rbrack\left\lbrack \quad\begin{matrix} u_{1} \\ \vdots \\ u_{N} \end{matrix} \right\rbrack} + {\left\lbrack \quad\begin{matrix} {{- M}\quad I^{n \times n}} & 0 & \cdots & 0 \\ 0 & ⋰ & ⋰ & \vdots \\ \vdots & ⋰ & ⋰ & 0 \\ 0 & \cdots & 0 & {{- M}\quad I^{n \times n}} \end{matrix}\quad \right\rbrack\left\lbrack \quad\begin{matrix} {\quad b_{\quad 1}} \\ \vdots \\ {\quad b_{\quad N}} \end{matrix} \right\rbrack}} \leq \left\lbrack \quad\begin{matrix} {\quad{\theta^{\quad\prime}\quad - \quad{\theta\quad{As}_{\quad 0}}}} \\ \vdots \\ {\quad{\theta^{\quad\prime}\quad - \quad{\theta\quad A^{\quad N}\quad s_{\quad 0}}}} \end{matrix} \right\rbrack}\quad}\quad\left\lbrack \quad\begin{matrix} {\quad\left\lbrack {1\quad\cdots\quad 1} \right\rbrack_{1 \times n}} & 0 & \ldots & 0 \\ 0 & ⋰ & ⋰ & \vdots \\ \vdots & ⋰ & ⋰ & 0 \\ 0 & \ldots & 0 & {\quad\left\lbrack {1\quad\ldots\quad 1} \right\rbrack_{1 \times n}} \end{matrix} \right\rbrack}\left\lbrack \quad\begin{matrix} {\quad b_{\quad 1}} \\ \vdots \\ {\quad b_{\quad N}} \end{matrix} \right\rbrack} \leq \left\lbrack \quad\begin{matrix} {n\quad - \quad 1} \\ \vdots \\ {n\quad - \quad 1} \end{matrix}\quad \right\rbrack$

If we define: ${\theta_{A_{1}} = \begin{bmatrix} {\theta\quad B} & 0 & \cdots & 0 \\ {\theta\quad{AB}} & {\theta\quad B} & ⋰ & \vdots \\ \vdots & \quad & ⋰ & 0 \\ {\theta\quad A^{N - 1}B} & \cdots & {\theta\quad{AB}} & {\theta\quad B} \end{bmatrix}},{\theta_{B_{1}} = \begin{bmatrix} {\theta^{\prime} - {\theta\quad{As}_{0}}} \\ \vdots \\ {\theta^{\prime} - {\theta\quad A^{N}s_{0}}} \end{bmatrix}},{b = \left\lbrack \quad\begin{matrix} b_{1} \\ \vdots \\ b_{N} \end{matrix} \right\rbrack}$ $\theta_{A_{2}} = \left\lbrack \quad\begin{matrix} \left\lbrack {1\quad\cdots\quad 1} \right\rbrack_{1 \times n} & 0 & \ldots & 0 \\ 0 & ⋰ & ⋰ & \vdots \\ \vdots & ⋰ & ⋰ & 0 \\ 0 & \ldots & 0 & \left\lbrack {1\ldots\quad 1} \right\rbrack_{1 \times n} \end{matrix} \right\rbrack$

The obstacle constraints become: −∞_(Nn × 1) ≤ θ_(A₁)u − M  I^(Nn × Nn)b ≤ θ_(B₁) − ∞_(N × 1) ≤ θ_(A₂)b ≤ (n − 1)_(N × 1)

Now we consider the case of having multiple obstacles. Since the sets of obstacle constraints corresponding to each vehicle are independent of one another, we only need to introduce additional sets of constraints if we introduce additional obstacles. Suppose we have p obstacles, and that for each obstacle iε{1, . . . ,p}, it has n_(i) sides. By labeling the constraint variables corresponding to each obstacle with a superscript denoting the obstacle, we have the following constraints: −∞_(Nn_(i) × 1) ≤ θ_(A₁)^(i)u − M  I^(Nn_(i) × Nn_(i))b_(i) ≤ θ_(B₁)^(i) − ∞_(N × 1) ≤ θ_(A₂)^(i)b_(i) ≤ (n_(i) − 1)_(N × 1) i∈  {1, …  , p}

Recall the following from the previous sections: $\underset{x}{\min\quad f\quad(x)}\begin{matrix} {= {{{\begin{bmatrix} 0_{3N \times 1} \\ r_{3N \times 1} \\ q_{3\quad{({N - 1})} \times 1} \end{bmatrix}^{T}\begin{bmatrix} u \\ \upsilon \\ w \end{bmatrix}}\begin{bmatrix} D_{B} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3\quad{({N - 1})} \times 1}} \\ {- \infty_{3\quad{({N - 1})} \times 1}} \end{bmatrix}} \leq}} \\ {\begin{bmatrix} D_{A} & 0 & 0 \\ I^{3N \times 3N} & {- I^{3N \times 3N}} & 0 \\ {- I^{3N \times 3N}} & {- I^{3N \times 3N}} & 0 \\ W_{A} & 0 & {- I^{3\quad{({N - 1})} \times 3\quad{({N - 1})}}} \\ {- W_{A}} & 0 & {- I^{3\quad{({N - 1})} \times 3\quad{({N - 1})}}} \end{bmatrix}} \\ {\begin{bmatrix} u \\ \upsilon \\ w \end{bmatrix} \leq {\begin{bmatrix} D_{B} \\ 0_{3N \times 1} \\ 0_{3N \times 1} \\ W_{B} \\ {- W_{B}} \end{bmatrix}\begin{bmatrix} {- u_{\max\quad\lbrack{3N \times 1}\rbrack}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3\quad{({N - 1})} \times 1}} \end{bmatrix}} \leq \begin{bmatrix} u \\ \upsilon \\ w \end{bmatrix} \leq} \\ {\begin{bmatrix} u_{\max\quad\lbrack{3N \times 1}\rbrack} \\ \infty_{3N \times 1} \\ \infty_{3\quad{({N - 1})} \times 1} \end{bmatrix}} \end{matrix}$ V_(B_(L)) ≤ V_(A)u ≤ V_(B_(U)) − ∞_(Nn_(i) × 1) ≤ θ_(A₁)^(i)u − M  I^(Nn_(i) × Nn_(i))b_(i) ≤ θ_(B₁)^(i) − ∞_(N × 1) ≤ θ_(A₂)^(i)b_(i) ≤ (n_(i) − 1)_(N × 1) i∈  {1, …  , p}

Combining all the composite matrices we have from the previous sections, we have the final MILP problem formulation: $\begin{matrix} {{\min\limits_{x}\quad{f\quad(x)}} = {{{\begin{bmatrix} 0_{3N \times 1} \\ r_{3N \times 1} \\ q_{3{({N - 1})} \times 1} \\ 0_{{Nn}_{1} \times 1} \\ \vdots \\ 0_{{Nn}_{p} \times 1} \end{bmatrix}^{T}\begin{bmatrix} u \\ \upsilon \\ w \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix}}\begin{bmatrix} D_{B} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3{({N - 1})} \times 1}} \\ {- \infty_{3{({N - 1})} \times 1}} \\ V_{B_{L}} \\ {- \infty_{{Nn}_{1} \times 1}} \\ {- \infty_{N \times 1}} \\ \vdots \\ {- \infty_{{Nn}_{p} \times 1}} \\ {- \infty_{N \times 1}} \end{bmatrix}} \leq}} \\ {{\begin{bmatrix} D_{A} & 0 & 0 & 0 & \cdots & 0 \\ I^{3N \times 3N} & {- I^{3N \times 3N}} & 0 & 0 & \cdots & 0 \\ {- I^{3N \times 3N}} & {- I^{3N \times 3N}} & 0 & 0 & \cdots & 0 \\ W_{A} & 0 & {- I^{3{({N - 1})}}} & 0 & \cdots & 0 \\ {- W_{A}} & 0 & {- I^{3{({N - 1})}}} & 0 & \cdots & 0 \\ V_{A} & 0 & 0 & 0 & \cdots & 0 \\ \theta_{A_{1}}^{1} & 0 & 0 & {{- M}\quad I^{{Nn}_{1} \times {Nn}_{1}}} & \quad & \quad \\ 0 & 0 & 0 & \theta_{A_{2}}^{1} & \quad & \quad \\ \vdots & \vdots & \vdots & \quad & ⋰ & \quad \\ \theta_{A_{1}}^{p} & 0 & 0 & \quad & \quad & {{- M}\quad I^{{Nn}_{p} \times {Nn}_{p}}} \\ 0 & 0 & 0 & \quad & \quad & \theta_{A_{2}}^{p} \end{bmatrix}\begin{bmatrix} u \\ \upsilon \\ w \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix}} \leq} \\ {{\begin{bmatrix} D_{B} \\ 0_{3N \times 1} \\ 0_{3N \times 1} \\ W_{B} \\ {- W_{B}} \\ V_{B_{U}} \\ \theta_{B_{1}}^{1} \\ \left( {n_{1} - 1} \right)_{N \times 1} \\ \vdots \\ \theta_{B_{1}}^{p} \\ \left( {n_{p} - 1} \right)_{N \times 1} \end{bmatrix}\begin{bmatrix} {- u_{\max{\lbrack{3N \times 1}\rbrack}}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3{({N - 1})} \times 1}} \\ 0_{{Nn}_{1} \times 1} \\ \vdots \\ 0_{{Nn}_{p} \times 1} \end{bmatrix}} \leq \begin{bmatrix} u \\ \upsilon \\ w \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix} \leq \begin{bmatrix} u_{\max{\lbrack{3N \times 1}\rbrack}} \\ \infty_{3N \times 1} \\ \infty_{3{({N - 1})} \times 1} \\ 1_{{Nn}_{1} \times 1} \\ \vdots \\ 1_{{Nn}_{p} \times 1} \end{bmatrix}} \end{matrix}$

Assuming that N is the number of time steps, the above MILP problem has the following size: Number of constraints, $6 + {3N*2} + {3\quad\left( {N - 1} \right)*2} + {3N} + {N{\sum\limits_{i = 1}^{p}\quad\left( {n_{i} + 1} \right)}}$ Number of continuous variables, 3N+3N+3(N−1) Number of discrete variables, $N{\sum\limits_{i = 1}^{p}\quad n_{i}}$

The receding horizon implementation is only slightly different from the fixed time arrival, infinite horizon problem we have considered earlier. One difference is that we no longer expect the vehicle to arrive at the destination at the end of the planning horizon, so the following no longer applies: D_(B)≦D_(A)u≦D_(B)

In place of restricting the vehicle to be at the destination at the end of the planning horizon, we encourage the vehicle to get closer to the destination SF by modifying the cost function to include a terminal cost: f(x)=r(∥u ₁∥₁ + . . . +∥u _(N)∥₁)+q(d ₁(s ₁ ,s _(F))+ . . . +d ₁(s(N−1),s _(F)))+pd ₁(s _(N) ,s _(F))

We can implement the additional term pd₁(s_(N), s_(F)) in the energy function in similar fashion as we did previously. We introduce slack variable w_(N) such that ∀kε{x, y}: −w _(jk) ≦s _(jk) −s _(Fk) ≦w _(jk) (note: s_(ix)=x_(i), s_(iy)=y_(i))

This essentially makes, ∀kε{x,y}, w _(Nk) ≧∥s _(jN) −s _(Fk)∥≧0

By making the cost vector and state vector: ${c = {\begin{bmatrix} 0_{3 \times 1} \\ \vdots \\ 0_{3 \times 1} \\ r_{3 \times 1} \\ \vdots \\ r_{3 \times 1} \\ q_{3 \times 1} \\ \vdots \\ q_{3 \times 1} \\ p_{3 \times 1} \end{bmatrix} = \begin{bmatrix} 0_{3N \times 1} \\ r_{3N \times 1} \\ q_{3{({N - 1})} \times 1} \\ p_{3 \times 1} \end{bmatrix}}},{x = \begin{bmatrix} u_{1} \\ \vdots \\ u_{N} \\ \upsilon_{1} \\ \vdots \\ \upsilon_{N} \\ w_{1} \\ \vdots \\ w_{N - 1} \\ w_{N} \end{bmatrix}}$

We are essentially minimizing w_(Nk) such that w _(Nk) =∥s _(Nk) −s _(Fk)∥, or equivalently, $w_{N} = {{\begin{matrix} {x_{N} - x_{F}} \\ {y_{N} - y_{F}} \\ {z_{N} - z_{F}} \end{matrix}}_{1}.}$

To actually implement the above cost function in matrix form, we observe that for the following inequalities: −w_(Nk) ≦s _(Nk) −s _(Fk) ≦w _(Nk)

The equivalent is: (s _(Nk) −s _(Fk))−w _(Nk)≦0 −(s _(Nk) −s _(Fk))−w _(Nk)≦0

If we sum up k:∀kε{x,y}, then we have: (Ws _(N) −Ws _(F))−w _(N)≦0_(3×1) −(Ws _(N) −Ws _(F))−w _(N)≦0_(3×1) where $W = \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 \end{bmatrix}$

Since we know: s_(k)=A^(k)s₀ +A ^(k-1) Bu ₁ + . . . +ABu _(k-1) +Bu _(k)

We have, after some rearrangements: (WA ^(N-1) Bu ₁ + . . . +WABu _(N-1) +WBu _(N))−w _(N) ≦W(s _(F) −A ^(N) s ₀) −(WA ^(N-1) Bu ₁ + . . . +WABu _(N-1) +WBu _(N))−w_(N) ≦−W(s _(F) −A ^(N) s ₀)

Or in matrix form: ${{\left\lbrack {W\quad A^{N - 1}B\quad\cdots\quad W\quad{AB}\quad W\quad B} \right\rbrack\begin{bmatrix} u_{1} \\ \vdots \\ u_{N} \end{bmatrix}} - {I^{3 \times 3}w_{N}}} \leq {{W\quad\left( {s_{F} - {A^{N}s_{o}}} \right)} - {\left\lbrack {W\quad A^{N - 1}B\quad\cdots\quad W\quad{AB}\quad W\quad B} \right\rbrack\begin{bmatrix} u_{1} \\ \vdots \\ u_{N} \end{bmatrix}} - {I^{3 \times 3}w_{N}}} \leq {{- W}\quad\left( {s_{F} - {A^{N}s_{o}}} \right)}$

In matrix form, we can augment this with the matrices we have previously: ${{\begin{bmatrix} {W\quad B} & \cdots & 0 & 0 \\ \vdots & ⋰ & 0 & 0 \\ {W\quad A^{N - 2}B} & \cdots & {W\quad B} & 0 \end{bmatrix}\begin{bmatrix} u_{1} \\ \vdots \\ u_{N} \end{bmatrix}} - {\begin{bmatrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{bmatrix}\begin{bmatrix} w_{1} \\ \vdots \\ w_{N - 1} \end{bmatrix}}} \leq {\begin{bmatrix} {W\quad\left( {s_{F} - {As}_{0}} \right)} \\ \vdots \\ {W\left( {s_{F} - {A^{N - 1}s_{0}}} \right)} \end{bmatrix} - {\begin{bmatrix} {W\quad B} & \cdots & 0 & 0 \\ \vdots & ⋰ & 0 & 0 \\ {W\quad A^{N - 2}B} & \cdots & {W\quad B} & 0 \end{bmatrix}\left\lbrack \quad\begin{matrix} u_{1} \\ \vdots \\ u_{N} \end{matrix} \right\rbrack} - {\left\lbrack \quad\begin{matrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{matrix} \right\rbrack\left\lbrack \quad\begin{matrix} w_{1} \\ \vdots \\ w_{N - 1} \end{matrix} \right\rbrack}} \leq \quad{- {{\quad\quad}\left\lbrack \quad\begin{matrix} {W\quad\left( {s_{F} - {As}_{0}} \right)} \\ \vdots \\ {W\left( {s_{F} - {A^{N - 1}s_{0}}} \right)} \end{matrix} \right\rbrack}}$

So that we have the following instead: ${{{{\begin{bmatrix} {W\quad B} & \cdots & 0 \\ \vdots & ⋰ & 0 \\ {W\quad A^{N - 1}B} & \cdots & {W\quad B} \end{bmatrix}\left\lbrack \quad\begin{matrix} u_{1} \\ \vdots \\ u_{N} \end{matrix} \right\rbrack} - {\begin{bmatrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{bmatrix}\left\lbrack \quad\begin{matrix} w_{1} \\ \vdots \\ w_{N} \end{matrix} \right\rbrack}}\quad \leq {\begin{bmatrix} {W\quad\left( {s_{F} - {As}_{0}} \right)} \\ \vdots \\ {W\left( {s_{F} - {A^{N}s_{0}}} \right)} \end{bmatrix} - {\begin{bmatrix} {W\quad B} & \cdots & 0 \\ \vdots & ⋰ & 0 \\ {W\quad A^{N - 1}B} & \cdots & {W\quad B} \end{bmatrix}\left\lbrack \quad\begin{matrix} u_{1} \\ \vdots \\ u_{N} \end{matrix} \right\rbrack} - {\begin{bmatrix} I^{3 \times 3} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & I^{3 \times 3} \end{bmatrix}\left\lbrack \quad\begin{matrix} w_{1} \\ \vdots \\ w_{N} \end{matrix} \right\rbrack}} \leq \quad -}\quad}{\quad\quad\begin{bmatrix} {W\quad\left( {s_{F} - {As}_{0}} \right)} \\ \vdots \\ {W\left( {s_{F} - {A^{N}s_{0}}} \right)} \end{bmatrix}}$

If we define: $W_{A}^{\prime} = {\begin{bmatrix} W_{A} \\ \left\lbrack {W\quad A^{N - 1}B\quad\cdots\quad W\quad{AB}\quad W\quad B} \right\rbrack \end{bmatrix} = \begin{bmatrix} {W\quad B} & \cdots & 0 \\ \vdots & ⋰ & 0 \\ {W\quad A^{N - 1}B} & \cdots & {W\quad B} \end{bmatrix}}$ $W_{B}^{\prime} = {\begin{bmatrix} W_{B} \\ {W\quad\left( {s_{F} - {A^{N}s_{0}}} \right)} \end{bmatrix} = \begin{bmatrix} {W\quad\left( {s_{F} - {As}_{0}} \right)} \\ \vdots \\ {W\left( {s_{F} - {A^{N}s_{0}}} \right)} \end{bmatrix}}$ ${w^{\prime} = {\begin{bmatrix} w \\ w_{N} \end{bmatrix} = \begin{bmatrix} w_{1} \\ \vdots \\ w_{N} \end{bmatrix}}},{x = \begin{bmatrix} u \\ \upsilon \\ w^{\prime} \end{bmatrix}}$

Then the LP problem formulation becomes: ${\min\limits_{x}{f(x)}} = {{{\begin{bmatrix} \begin{matrix} 0_{3N \times 1} \\ r_{3N \times 1} \end{matrix} \\ \begin{bmatrix} q_{3{({N - 1})} \times 1} \\ p_{3 \times 1} \end{bmatrix} \end{bmatrix}^{T}\begin{bmatrix} u \\ \upsilon \\ w^{\prime} \end{bmatrix}}\begin{bmatrix} {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \end{bmatrix}} \leq {\begin{bmatrix} I^{3N \times 3N} & {- I^{3N \times 3N}} & 0 \\ {- I^{3N \times 3N}} & {- I^{3N \times 3N}} & 0 \\ W_{A}^{\prime} & 0 & {- I^{3N \times 3N}} \\ {- W_{A}^{\prime}} & 0 & {- I^{3N \times 3N}} \end{bmatrix}\begin{bmatrix} u \\ \upsilon \\ w^{\prime} \end{bmatrix}} \leq {\begin{bmatrix} 0_{3N \times 1} \\ 0_{3N \times 1} \\ W_{B}^{\prime} \\ {- W_{B}^{\prime}} \end{bmatrix}\begin{bmatrix} {- u_{\max{\lbrack{3N \times}\rbrack}}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \end{bmatrix}} \leq \begin{bmatrix} u \\ \upsilon \\ w^{\prime} \end{bmatrix} \leq \begin{bmatrix} u_{\max{\lbrack{3N \times 1}\rbrack}} \\ \infty_{3N \times 1} \\ \infty_{3N \times 1} \end{bmatrix}}$

And the MILP problem formulation is: ${\min\limits_{x}{f(x)}} = {{{\begin{bmatrix} \begin{matrix} 0_{3N \times 1} \\ r_{3N \times 1} \end{matrix} \\ \begin{bmatrix} q_{3{({N - 1})} \times 1} \\ p_{3 \times 1} \end{bmatrix} \\ \begin{matrix} 0_{{Nn}_{1} \times 1} \\ \vdots \\ 0_{{Nn}_{p} \times 1} \end{matrix} \end{bmatrix}^{T}\begin{bmatrix} u \\ \upsilon \\ w^{\prime} \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix}}\begin{bmatrix} {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ V_{B_{L}} \\ {- \infty_{{Nn}_{1} \times 1}} \\ {- \infty_{N \times 1}} \\ \vdots \\ {- \infty_{{Nn}_{p} \times 1}} \\ {- \infty_{N \times 1}} \end{bmatrix}} \leq {\begin{bmatrix} I^{3N \times 3N} & {- I^{3N \times 3N}} & 0 & 0 & \cdots & 0 \\ {- I^{3N \times 3N}} & {- I^{3N \times 3N}} & 0 & 0 & \cdots & 0 \\ W_{A}^{\prime} & 0 & {- I^{3N \times 3N}} & 0 & \cdots & 0 \\ {- W_{A}^{\prime}} & 0 & {- I^{3N \times 3N}} & 0 & \cdots & 0 \\ V_{A} & 0 & 0 & 0 & \cdots & 0 \\ \theta_{A_{1}}^{1} & 0 & 0 & {- {MI}^{{Nn}_{1} \times {Nn}_{1}}} & \quad & \quad \\ 0 & 0 & 0 & \theta_{A_{1}}^{1} & \quad & \quad \\ \vdots & \vdots & \vdots & \quad & ⋰ & \quad \\ \theta_{A_{1}}^{p} & 0 & 0 & \quad & \quad & {- {MI}^{{Nn}_{1} \times {Nn}_{p}}} \\ 0 & 0 & 0 & \quad & \quad & \theta_{A_{2}}^{p} \end{bmatrix}\begin{bmatrix} u \\ \upsilon \\ w^{\prime} \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix}} \leq {\begin{bmatrix} 0_{3N \times 1} \\ 0_{3N \times 1} \\ W_{B}^{\prime} \\ {- W_{B}^{\prime}} \\ V_{B_{u}} \\ \theta_{B_{1}}^{1} \\ \left( {n_{1} - 1} \right)_{N \times 1} \\ \vdots \\ \theta_{B_{1}}^{p} \\ \left( {n_{p} - 1} \right)_{N \times 1} \end{bmatrix}\begin{bmatrix} {- u_{\max{\lbrack{3N \times 1}\rbrack}}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ 0_{{Nn}_{1} \times 1} \\ \vdots \\ 0_{{Nn}_{p} \times 1} \end{bmatrix}} \leq \begin{bmatrix} u \\ \upsilon \\ w^{\prime} \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix} \leq \begin{bmatrix} u_{\max{\lbrack{3N \times 1}\rbrack}} \\ \infty_{3N \times 1} \\ \infty_{3N \times 1} \\ 1_{{Nn}_{1} \times 1} \\ \vdots \\ 1_{{Nn}_{p} \times 1} \end{bmatrix}}$

Assuming that N is the number of time steps, the above receding horizon MILP problem has the following size: Number of constraints, ${3N*2} + {3N*2} + {3N} + {N{\sum\limits_{i = 1}^{p}\left( {n_{i} + 1} \right)}}$ Number of continuous variables, 3N+3N+3N Number of discrete variables, $N{\sum\limits_{i = 1}^{p}n_{i}}$

For Nap-of-the-Earth (NOE) flight, suppose we want to encourage the vehicle to stay closer to the ground. We can do this by imposing a cost on the altitude (z) of the vehicle. This is posed as an additional term in the cost function: f(x)=f _(old)(x)+a _(z)(z ₁ + . . . +z _(N))

If we define: Z=[0 0 1 0 0 0]

Then z_(k)=Zs_(k). so that: a _(z)(z ₁ + . . . +z _(N))=a _(z)(Zs ₁ + . . . +Zs _(N))

Since we know: s _(k) =A ^(k) s ₀ +A ^(k-1) Bu ₁ + . . . +ABu _(k-1) +Bu _(k)

To make z_(k)=Zs_(k) implementable, we could make z_(k) slack variables by introducing the following constraint: ZA ^(k-1) Bu ₁ + . . . +ZABu _(k-1) +ZBu _(k) −z _(k) =−ZA ^(k) s ₀

Or in matrix form: ${{\left\lbrack {Z\quad A^{k - 1}B\quad\ldots\quad Z\quad{AB}\quad Z\quad B} \right\rbrack\begin{bmatrix} u_{1} \\ \vdots \\ u_{k} \end{bmatrix}} - z_{k}} = {{- Z}\quad A^{k}s_{0}}$

And the composite form would be: $\begin{bmatrix} {- {ZAs}_{0}} \\ \vdots \\ {{- {ZA}^{N}}s_{0}} \end{bmatrix} \leq {{\begin{bmatrix} {ZB} & \quad & \quad & \quad \\ {ZAB} & {ZB} & \quad & \quad \\ \vdots & \quad & ⋰ & \quad \\ {{ZA}^{N - 1}B} & \cdots & {ZAB} & {ZB} \end{bmatrix}\begin{bmatrix} u_{1} \\ \vdots \\ u_{N} \end{bmatrix}} - {\begin{bmatrix} 1 & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & 1 \end{bmatrix}\begin{bmatrix} z_{1} \\ \vdots \\ z_{N} \end{bmatrix}}} \leq \begin{bmatrix} {- {ZAs}_{0}} \\ \vdots \\ {{- {ZA}^{N}}s_{0}} \end{bmatrix}$

If we define: ${Z_{A} = \begin{bmatrix} {ZB} & \quad & \quad & \quad \\ {ZAB} & {ZB} & \quad & \quad \\ \vdots & \quad & ⋰ & \quad \\ {{ZA}^{N - 1}B} & \cdots & {ZAB} & {ZB} \end{bmatrix}},{Z_{B} = \begin{bmatrix} {- {ZAs}_{0}} \\ \vdots \\ {{- {ZA}^{N}}s_{0}} \end{bmatrix}},{z = \begin{bmatrix} z_{1} \\ \vdots \\ z_{N} \end{bmatrix}}$

Then we have: Z _(B) ≦Z _(A) u−I ^(N×N) z≦Z _(B)

We can add this to the existing matrices in the RH problem formulation to yield: ${\min\limits_{x}{f(x)}} = {{{\begin{bmatrix} \begin{matrix} 0_{3N \times 1} \\ r_{3N \times 1} \end{matrix} \\ \begin{bmatrix} q_{3{({N - 1})} \times 1} \\ p_{3 \times 1} \end{bmatrix} \\ \begin{matrix} a_{z{\lbrack{N \times 1}\rbrack}} \\ 0_{{Nn}_{1} \times 1} \\ \vdots \\ 0_{{Nn}_{p} \times 1} \end{matrix} \end{bmatrix}^{T}\begin{bmatrix} u \\ \upsilon \\ w^{\prime} \\ z \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix}}\begin{bmatrix} {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ V_{B_{L}} \\ Z_{B} \\ {- \infty_{{Nn}_{1} \times 1}} \\ {- \infty_{N \times 1}} \\ \vdots \\ {- \infty_{{Nn}_{p} \times 1}} \\ {- \infty_{N \times 1}} \end{bmatrix}} \leq {\begin{bmatrix} I^{3N \times 3N} & {- I^{3N \times 3N}} & 0 & 0 & 0 & \cdots & 0 \\ {- I^{3N \times 3N}} & {- I^{3N \times 3N}} & 0 & 0 & 0 & \cdots & 0 \\ W_{A}^{\prime} & 0 & {- I^{3N \times 3N}} & 0 & 0 & \cdots & 0 \\ {- W_{A}^{\prime}} & 0 & {- I^{3N \times 3N}} & 0 & 0 & \cdots & 0 \\ V_{A} & 0 & 0 & 0 & 0 & \cdots & 0 \\ Z_{A} & 0 & 0 & {- I^{N \times N}} & {0\quad} & {\quad\cdots} & 0 \\ \theta_{A_{1}}^{1} & 0 & 0 & 0 & {{- {MI}^{{Nn}_{1}}}\quad} & \quad & \quad \\ 0 & 0 & 0 & {0\quad} & \theta_{A_{2}}^{1} & \quad & \quad \\ \vdots & \vdots & \vdots & {\vdots\quad} & \quad & ⋰ & \quad \\ \theta_{A_{1}}^{p} & 0 & 0 & {0\quad} & \quad & \quad & {- {MI}^{{Nn}_{p}}} \\ 0 & 0 & 0 & 0 & \quad & \quad & \theta_{A_{2}}^{p} \end{bmatrix}\begin{bmatrix} u \\ \upsilon \\ w^{\prime} \\ z \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix}} \leq {\begin{bmatrix} 0_{3N \times 1} \\ 0_{3N \times 1} \\ W_{B}^{\prime} \\ {- W_{B}^{\prime}} \\ V_{B_{u}} \\ Z_{B} \\ \theta_{B_{1}}^{1} \\ \left( {n_{1} - 1} \right)_{N \times 1} \\ \vdots \\ \theta_{B_{1}}^{p} \\ \left( {n_{p} - 1} \right)_{N \times 1} \end{bmatrix}\begin{bmatrix} {- u_{\max{\lbrack{3N \times 1}\rbrack}}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{N \times 1}} \\ 0_{{Nn}_{1} \times 1} \\ \vdots \\ 0_{{Nn}_{p} \times 1} \end{bmatrix}} \leq \begin{bmatrix} u \\ \upsilon \\ w^{\prime} \\ z \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix} \leq \begin{bmatrix} u_{\max{\lbrack{3N \times 1}\rbrack}} \\ \infty_{3N \times 1} \\ \infty_{3N \times 1} \\ \infty_{N \times 1} \\ 1_{{Nn}_{1} \times 1} \\ \vdots \\ 1_{{Nn}_{p} \times 1} \end{bmatrix}}$

Alternately, if we introduced the NOE constraints to the non-RH formulation, we would have: ${\min\limits_{x}{f(x)}} = {{{\begin{bmatrix} \begin{matrix} 0_{3N \times 1} \\ r_{3N \times 1} \end{matrix} \\ q_{3{({N - 1})} \times 1} \\ \begin{matrix} a_{z{\lbrack{N \times 1}\rbrack}} \\ 0_{{Nn}_{1} \times 1} \\ \vdots \\ 0_{{Nn}_{p} \times 1} \end{matrix} \end{bmatrix}^{T}\begin{bmatrix} u \\ \upsilon \\ w \\ z \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix}}\begin{bmatrix} D_{B} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3{({N - 1})} \times 1}} \\ {- \infty_{3{({N - 1})} \times 1}} \\ V_{B_{L}} \\ Z_{B} \\ {- \infty_{{Nn}_{1} \times 1}} \\ {- \infty_{N \times 1}} \\ \vdots \\ {- \infty_{{Nn}_{p} \times 1}} \\ {- \infty_{N \times 1}} \end{bmatrix}} \leq {\begin{bmatrix} D_{A} & 0 & 0 & 0 & 0 & \cdots & 0 \\ I^{3N \times 3N} & {- I^{3N \times 3N}} & 0 & 0 & 0 & \cdots & 0 \\ {- I^{3N \times 3N}} & {- I^{3N \times 3N}} & 0 & 0 & 0 & \cdots & 0 \\ W_{A} & 0 & {- I^{3{({N - 1})}}} & 0 & 0 & \cdots & 0 \\ {- W_{A}} & 0 & {- I^{3{({N - 1})}}} & 0 & 0 & \cdots & 0 \\ V_{A} & 0 & 0 & 0 & {0\quad} & {\quad\cdots} & 0 \\ Z_{A} & 0 & 0 & {- I^{N \times N}} & {0\quad} & {\cdots\quad} & {0\quad} \\ \theta_{A_{1}}^{1} & 0 & 0 & {0\quad} & {- {MI}^{{Nn}_{1}}} & \quad & \quad \\ 0 & 0 & 0 & {0\quad} & {\theta_{A_{2}}^{1}\quad} & \quad & \quad \\ \vdots & \vdots & \vdots & {\vdots\quad} & \quad & {⋰\quad} & \quad \\ \theta_{A_{1}}^{p} & 0 & 0 & 0 & \quad & \quad & {- {MI}^{{Nn}_{p}}} \\ 0 & 0 & 0 & 0 & \quad & \quad & \theta_{A_{2}}^{p} \end{bmatrix}\begin{bmatrix} u \\ \upsilon \\ w \\ z \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix}} \leq {\begin{bmatrix} D_{B} \\ 0_{3N \times 1} \\ 0_{3N \times 1} \\ W_{B} \\ {- W_{B}} \\ V_{B_{u}} \\ Z_{B} \\ \theta_{B_{1}}^{1} \\ \left( {n_{1} - 1} \right)_{N \times 1} \\ \vdots \\ \theta_{B_{1}}^{p} \\ \left( {n_{p} - 1} \right)_{N \times 1} \end{bmatrix}\begin{bmatrix} {- u_{\max{\lbrack{3N \times 1}\rbrack}}} \\ {- \infty_{3N \times 1}} \\ {- \infty_{3{({N - 1})} \times 1}} \\ {- \infty_{N \times 1}} \\ 0_{{Nn}_{1} \times 1} \\ \vdots \\ 0_{{Nn}_{p} \times 1} \end{bmatrix}} \leq \begin{bmatrix} u \\ \upsilon \\ w \\ z \\ b_{1} \\ \vdots \\ b_{p} \end{bmatrix} \leq \begin{bmatrix} u_{\max{\lbrack{3N \times 1}\rbrack}} \\ \infty_{3N \times 1} \\ \infty_{3{({N - 1})} \times 1} \\ \infty_{N \times 1} \\ 1_{{Nn}_{1} \times 1} \\ \vdots \\ 1_{{Nn}_{p} \times 1} \end{bmatrix}}$

Assuming that N is the number of time steps, the above receding horizon MILP problem has the following size: Number of constraints, ${3N*2} + {3N*2} + {3N} + {N{\underset{i = 1}{\overset{p}{{+ N}\sum}}\left( {n_{i} + 1} \right)}}$ Number of continuous variables, 3N+3N+3N+N Number of discrete variables, $N{\sum\limits_{i = 1}^{p}n_{i}}$

Alternately, if we introduced the NOE constraints to the non-RH formulation, the problem size would be: Number of constraints, $6 + {3N*2} + {3\left( {N - 1} \right)*2} + {3N} + N + {N{\sum\limits_{i = 1}^{p}\left( {n_{i} + 1} \right)}}$ Number of continuous variables, 3N+3N+3(N−1)+N Number of discrete variables, $N{\sum\limits_{i = 1}^{p}n_{i}}$

We have presented various problem formulations in MILP. One implicit assumption was that there will be a solution to each of these problems. However, this is not always the case. In fact, with very simple manipulations of the constraints, we can easily show that no solution exists for these modified problems. For instance, for any fixed-horizon MILP problems which require that the vehicle starts and ends in particular states, we can easily show that no solution exists by severely limiting the maximum speed and/or acceleration available to the vehicle. Similarly, for any receding-horizon MILP problem, we can allow the vehicle to travel at high speeds, but with very limited acceleration/deceleration rate and very limited time horizon such that it is possible for the vehicle to “see” an obstacle in the problem formulation, but it is mathematically unable to avoid colliding with it. In both of these cases a solution which satisfies all of the constraints imposed by the particular problem formulation does not exist. In the first case, any proposed solution that satisfies the speed and acceleration constraints will not arrive at the destination at the prescribed time. In the second, any proposed solution that satisfies the speed and acceleration constraints will not satisfy the collision constraints, and vice versa. As for the former scenario, one can only call the problem an ill-conditioned one because we are asking the vehicle to achieve the impossible.

This can be resolved only by redefining the constraints of the problem to more realistic values. The latter scenario is the motivation for safe maneuvers. The danger posed by this scenario is very much real if we were to implement MILP trajectory planning in a realistic environment. Therefore, it is desirable to introduce a mechanism in the solution process to ensure that this scenario will not manifest itself. Since the vehicle model is that of a double integrator in each axis, one way to ensure that the vehicle will not run into any obstacle is by properly scaling the maximum vehicle velocity (vmax), maximum vehicle acceleration (umax), and look-ahead time horizon (N) such that, in the worst case scenario, a solution theoretically should still exist, although the solution could involve temporarily or permanently stopping behind the subject obstacle. This is easily achieved by imposing the following constraint on the vehicle dynamics: v _(max) ≦N×u _(max) which ensures that the vehicle will come to a stop in the same number of time steps as the planning horizon.

Failing that, we could yet have another scenario where a solution (whether optimal or not) theoretically exists but the MILP problem is so large that any valid solution (even a suboptimal one) would take an unrealistic amount of time for the solver to find a solution in the context of real-time vehicle control. From a viewpoint of guaranteed safety, assuming that we have proper obstacle detection and adhere to the stated maximum velocity limit and have the stated deceleration capability, whenever the solver fails to return a valid solution within a specified time appropriate in a real-time environment, we can force the vehicle to a stop. The vehicle speed restriction, which is tied to the maximum deceleration rate and planning horizon, still applies here. This mechanism works in practice because almost all MILP solvers have a time-out value a user can set, beyond which the solver will either display the best solution it has found prior to the time-out, or indicate that no valid suboptimal solution has been found.

We intend to generate a trajectory through a 3-D space with obstacles, throughout which the vehicle does not fall within line-of-sight of ground threats, whose positions are known. An example would be a downtown area, where numerous buildings serve as obstructions to line-of-sight to the threats.

If line-of-sight visibility to a known threat is to be completely avoided throughout the entire planned trajectory, we can define all spaces that are visible to a threat similar to obstacles that are to be avoided, so that the planned trajectory will not intersect these spaces. This would allow us to use our existing MILP problem formulation. However, for a typical 3-D case, it is often easier to consider the problem in reverse. That is, instead of defining obstacle-like unsafe zones where the trajectory needs to avoid, we introduce the concept of safe zones within which one cannot be seen by a threat. We formally define such a safe zone as a space associated with one threat and one obstacle, within which one is not visible to the threat. Geometrically, each safe zone will be bounded by the sides of an obstacle that are facing the threat, as well as planes that intersect both the threat (a point) and the edges of these aforementioned sides. FIG. 3 illustrates this in 2-D. Notice that a corresponding safe zone in 3-D for a cube would be a pyramid of infinite height, minus a smaller pyramid with the “front face” of the cube as its base and sharing the same top.

Fundamentally, safe zones are geometrically easier to define and implement in an MILP algorithm than unsafe zones for several reasons. First, the safe zone for a single threat, single obstacle scenario is simply the “shadow” cast by the obstacle under the threat and is thus straightforward to define for convex obstacles. Second, in a single threat, multiple obstacles scenario, the set of spaces invisible to the threat, or overall safe zone, is simply a union of all the safe zones associated with each obstacle. FIG. 12 shows what the space looks like. In FIG. 12, a threat is located at point 100. Obstacles 102 and 104 block the line-of-sight direction from the threat to create safe zones 106 and 108. This holds true even if one obstacle partially or totally blocks another obstacle from view of the threat, because if one is inside one of the “shadows” one is safe whether or not one is in another obstacle's “shadow”. FIG. 4 shows why this is true. Unsafe zones, on the other hand, do not have similar “nice” properties. FIG. 5 shows the overall safe zone for a single threat, multiple obstacles scenario. Third, if we have multiple threats and multiple obstacles, the overall safe zone is defined as the intersection of sets of safe zones, with each set corresponding to a threat.

To paint a more mathematical picture of what we just described, we make use of notations from point-set topology. Suppose we have t threats and o obstacles. We would have t×o number of safe zones, with each one associated with a single threat and a single obstacle. Each safe zone is likened to a “shadow” behind an obstacle cast by a threat. Let's label a safe zone with subscript and superscript as in S_(j) ^(i), where iε{1, . . . , o} denotes the obstacle and jε{1, . . . , t} denotes the threat.

The overall safe zone would be the following: (S₁ ¹∪ . . . ∪S₁ ^(o))∪ . . . ∪(S_(t) ¹∪ . . . ∪S_(t) ^(o))

We assume that each obstacle is defined by a finite number of planar inequalities, so that the safe zone associated with each obstacle and a threat is also defined by a finite number of planar inequalities. Suppose we have a rectangular box in 3-D defined by: x_(min)≦x≦x_(max) y_(min)≦y≦y_(max) z_(min)≦z≦z_(max)

We introduce binary variables b_(k)*ε{0,1} for each time step k and a number M>>0 sufficiently large such that: −x − Mb_(k_(x_(min))) ≤ −x_(min) − y − Mb_(k_(y_(min))) ≤ −y_(min) − z − Mb_(k_(z_(min))) ≤ −z_(min) x − Mb_(k_(x_(max))) ≤ x_(max) y − Mb_(k_(y_(max))) ≤ y_(max) z − Mb_(k_(z_(max))) ≤ z_(max) b_(k_(x_(min))) + b_(k_(y_(min))) + b_(k_(z_(min))) + b_(k_(x_(max))) + b_(k_(y_(max))) + b_(k_(z_(max))) − Mb_(k)^(box) ≤ 0

First we show that b_(k) ^(box)=0 implies (x, y, z) is inside the box at time k: $\begin{matrix} {b_{k}^{box} = {\left. 0\Rightarrow k_{x_{\min}} \right. = {b_{k_{y_{\min}}} = {b_{k_{z_{\min}}} = {b_{k_{x_{\max}}} = {b_{k_{y_{\max}}} = {b_{k_{\max}} = 0}}}}}}} \\ {\left. \Rightarrow{{- x} \leq {- x_{\min}}} \right.,{x \leq x_{\max}}} \\ {\left. \Rightarrow{x_{\min} \leq x \leq {x_{\max} - y} \leq {- y_{\min}}} \right.,{y \leq y_{\max}}} \\ {\left. \Rightarrow{y_{\min} \leq y \leq {y_{\max} - z} \leq {- z_{\min}}} \right.,{z \leq z_{\max}}} \\ \left. \Rightarrow{z_{\min} \leq z \leq z_{\max}} \right. \end{matrix}$

Now, instead of restricting the safe zone to a rectangular box, we generalize the above constraints to include 3-D spaces defined by planar (but not necessarily Euclidean) constraints, through the use of auxiliary matrices and variables as introduced above. Suppose we have a safe zone defined by s planar constraints, or sides, we have the following constraints: $\begin{matrix} {{{{- \theta_{1}}s_{k}} - {Mb}_{k_{1}}} \leq {- \theta_{1}^{\prime}}} \\ \vdots \\ {{{{- \theta_{s}}s_{k}} - {Mb}_{k_{s}}} \leq {- \theta_{s}^{\prime}}} \\ {{b_{k_{1}} + \ldots + b_{k_{s}} - {Mb}_{k}^{\prime}} \leq 0} \end{matrix}$

If we set: ${\theta = \begin{bmatrix} \theta_{1} \\ \vdots \\ \theta_{s} \end{bmatrix}},{b_{k} = \begin{bmatrix} b_{k_{1}} \\ \vdots \\ b_{k_{s}} \end{bmatrix}},{\theta^{\prime} = \begin{bmatrix} \theta_{1}^{\prime} \\ \vdots \\ \theta_{s}^{\prime} \end{bmatrix}}$

The above inequalities become: −θs _(k) −Mb _(k)≦−θ′ b _(k) ₁ + . . . +b _(k) _(s) −Mb′ _(k)≦0

If we sum up the above inequalities for all kε{1, . . . , N}, and following similar simplification steps as those shown above, we have the following: ${{- {\begin{bmatrix} {\theta\quad B} & 0 & \cdots & 0 \\ {\theta\quad{AB}} & {\theta\quad B} & ⋰ & \vdots \\ \vdots & \quad & ⋰ & 0 \\ {\theta\quad A^{N - 1}B} & \cdots & {\theta\quad{AB}} & {\theta\quad B} \end{bmatrix}\begin{bmatrix} u_{1} \\ \vdots \\ u_{N} \end{bmatrix}}} + {\begin{bmatrix} {- {MI}^{s \times s}} & 0 & \cdots & 0 \\ 0 & ⋰ & ⋰ & \vdots \\ \vdots & ⋰ & ⋰ & 0 \\ 0 & \cdots & 0 & {- {MI}^{s \times s}} \end{bmatrix}\begin{bmatrix} b_{1} \\ \vdots \\ b_{N} \end{bmatrix}}} \leq {{- {{\begin{bmatrix} {\theta^{\prime} - {\theta As}_{0}} \\ \vdots \\ {\theta^{\prime} - {{\theta A}^{N}s_{0}}} \end{bmatrix}\begin{bmatrix} \left\lbrack {1{\cdots 1}} \right\rbrack_{\lbrack{1 \times s}\rbrack} & 0 & \cdots & 0 \\ 0 & ⋰ & ⋰ & \vdots \\ \vdots & ⋰ & ⋰ & 0 \\ 0 & \cdots & 0 & \left\lbrack {1{\cdots 1}} \right\rbrack_{\lbrack{1 \times s}\rbrack} \end{bmatrix}}\begin{bmatrix} b_{1} \\ \vdots \\ b_{N} \end{bmatrix}}} + {\begin{bmatrix} {- M} & 0 & 0 \\ 0 & ⋰ & 0 \\ 0 & 0 & {- M} \end{bmatrix}\begin{bmatrix} b_{1}^{\prime} \\ \vdots \\ b_{N}^{\prime} \end{bmatrix}}} \leq \begin{bmatrix} 0 \\ \vdots \\ 0 \end{bmatrix}$

If we define: ${T_{A_{1}} = \begin{bmatrix} {\theta\quad B} & 0 & \cdots & 0 \\ {\theta\quad{AB}} & {\theta\quad B} & ⋰ & \vdots \\ \vdots & \quad & ⋰ & 0 \\ {\theta\quad A^{N - 1}B} & \cdots & {\theta\quad{AB}} & {\theta\quad B} \end{bmatrix}},{T_{B_{1}} = {- \begin{bmatrix} {\theta^{\prime} - {\theta\quad A\quad s_{0}}} \\ \vdots \\ {\theta^{\prime} - {\theta\quad A^{N}s_{0}}} \end{bmatrix}}}$ $b_{T} = {{\begin{bmatrix} b_{1} \\ \vdots \\ b_{N} \end{bmatrix}b_{T}^{\prime}} = \begin{bmatrix} b_{1}^{\prime} \\ \vdots \\ b_{N}^{\prime} \end{bmatrix}}$ $T_{A_{2}} = \begin{bmatrix} \left\lbrack {1{\cdots 1}} \right\rbrack_{\lbrack{1 \times s}\rbrack} & 0 & \cdots & 0 \\ 0 & ⋰ & ⋰ & \vdots \\ \vdots & ⋰ & ⋰ & 0 \\ 0 & \cdots & 0 & \left\lbrack {1{\cdots 1}} \right\rbrack_{\lbrack{1 \times s}\rbrack} \end{bmatrix}$

Then the constraints become: −∞_([Ns×1]) ≦T _(A) ₁ u−MI ^(Ns×Ns) b _(T) ≦T _(B) ₁ −∞_([N×1]) ≦T _(A) ₂ b _(T) −MI ^(N×N) b′ _(T)≦0_([N×1])

As usual, b′_(k)=0 implies that the trajectory is inside the safe zone defined by the obstacle auxiliary matrix and variable (θ,θ′) at time k. Now, suppose we have one safe zone defined for each obstacle iε{1, . . . , o}, and for each threat jε={1, . . . , t}. −∞_([Ns) _(i) _(×1]) ≦T _(A) ₁ ^(i,j) u−MI ^(Ns) ^(i) ^(×Ns) ^(i) b _(T) ^(i,j) ≦T _(B) _(i) ^(i,j) −∞_([N×1]) ≦T _(A) ₂ ^(i,j) −MI ^(N×N) b′ _(T) ^(i,j)≦0_([N×1])

We have the following constraint ∀jε{1, . . . , t}, ∀kε{1, . . . , N}: b′ _(k) ^(1,j) + . . . +b′ _(k) ^(o,j) ≦o−1

The above constraint guarantees that at least one member of the set {b′_(k) ^(1,j), . . . , b′_(k) ^(o,j)} is zero. That is, at time k, the trajectory is hidden from view from threat j behind at least one obstacle. Taken collectively for all threats j and time steps k, the trajectory is hidden from view behind some obstacle(s) from every threat at every time step.

We can express the following: −∞_([Ns) _(i) _(×1]) ≦T _(A) ₁ ^(i,j) u−MI ^(Ns) ^(i) ^(×Ns) ^(i) b _(T) ^(i,j) ≦T _(B) _(i) ^(i,j) −∞_([N×1]) ≦T _(A) ₂ ^(i,j) b _(T) ^(i,j) −MI ^(N×N) b′ _(T) ^(i,j)≦0_([N×1]) in matrix form for all iε{1, . . . , o}, jε{1, . . . , t}, then we have: ${{\begin{bmatrix} T_{A_{1}}^{1,1} \\ \vdots \\ T_{A_{1}}^{o,1} \\ \vdots \\ T_{A_{1}}^{1,t} \\ \vdots \\ T_{A_{1}}^{o,t} \end{bmatrix}u} + {\begin{bmatrix} {- {MI}^{{Ns}_{1}}} & \quad & \quad & \quad & \quad & \quad & \quad \\ \quad & ⋰ & \quad & \quad & \quad & \quad & \quad \\ \quad & \quad & {- {MI}^{{Ns}_{o}}} & \quad & \quad & \quad & \quad \\ \quad & \quad & \quad & ⋰ & \quad & \quad & \quad \\ \quad & \quad & \quad & \quad & {- {MI}^{{Ns}_{1}}} & \quad & \quad \\ \quad & \quad & \quad & \quad & \quad & ⋰ & \quad \\ \quad & \quad & \quad & \quad & \quad & \quad & {- {MI}^{{Ns}_{o}}} \end{bmatrix}\begin{bmatrix} b_{T}^{1,1} \\ \vdots \\ b_{T}^{o,1} \\ \vdots \\ b_{T}^{1,t} \\ \vdots \\ b_{T}^{o,t} \end{bmatrix}}} \leq {{{\begin{bmatrix} T_{B_{1}}^{1,1} \\ \vdots \\ T_{B_{1}}^{o,1} \\ \vdots \\ T_{B_{1}}^{1,t} \\ \vdots \\ T_{B_{1}}^{o,t} \end{bmatrix}\begin{bmatrix} T_{A_{2}}^{1,1} & \quad & \quad & \quad & \quad & \quad & \quad \\ \quad & ⋰ & \quad & \quad & \quad & \quad & \quad \\ \quad & \quad & T_{A_{2}}^{o,1} & \quad & \quad & \quad & \quad \\ \quad & \quad & \quad & ⋰ & \quad & \quad & \quad \\ \quad & \quad & \quad & \quad & T_{A_{2}}^{1,t} & \quad & \quad \\ \quad & \quad & \quad & \quad & \quad & ⋰ & \quad \\ \quad & \quad & \quad & \quad & \quad & \quad & T_{A_{2}}^{o,t} \end{bmatrix}}\begin{bmatrix} b_{T}^{1,1} \\ \vdots \\ b_{T}^{o,1} \\ \vdots \\ b_{T}^{1,t} \\ \vdots \\ b_{T}^{o,t} \end{bmatrix}} + {\begin{bmatrix} {- {MI}^{N}} & \quad & \quad & \quad & \quad & \quad & \quad \\ \quad & ⋰ & \quad & \quad & \quad & \quad & \quad \\ \quad & \quad & {- {MI}^{N}} & \quad & \quad & \quad & \quad \\ \quad & \quad & \quad & ⋰ & \quad & \quad & \quad \\ \quad & \quad & \quad & \quad & {- {MI}^{N}} & \quad & \quad \\ \quad & \quad & \quad & \quad & \quad & ⋰ & \quad \\ \quad & \quad & \quad & \quad & \quad & \quad & {- {MI}^{N}} \end{bmatrix}\begin{bmatrix} b_{T}^{{\prime 1},1} \\ \vdots \\ b_{T}^{{\prime o},1} \\ \vdots \\ b_{T}^{{\prime 1},t} \\ \vdots \\ b_{T}^{{\prime o},t} \end{bmatrix}}} \leq 0_{{Not} \times 1}$

If we express the following: b′ _(k) ^(1,j) + . . . +b′ _(k) ^(o,j) ≦o−1 in matrix form for all jε{1, . . . , t}, kε{1, . . . , N}, we first notice that: ${\begin{bmatrix} b_{1}^{{\prime 1},j} \\ \vdots \\ b_{N}^{{\prime 1},j} \end{bmatrix} + \ldots + \begin{bmatrix} b_{1}^{{\prime o},j} \\ \vdots \\ b_{N}^{{\prime o},j} \end{bmatrix}} = {{b_{T}^{{\prime 1},j} + \ldots + b_{T}^{{\prime o},j}} \leq \left( {o - 1} \right)_{N \times 1}}$ so that for all jε{1, . . . , t}, we have: ${\left\lbrack {I^{N \times N}\cdots\quad I^{N \times N}} \right\rbrack\begin{bmatrix} b_{T}^{{\prime 1},j} \\ \vdots \\ b_{T}^{{\prime o},j} \end{bmatrix}} \leq \left( {o - 1} \right)_{N \times 1}$

Finally, by summing up all jε{1, . . . , t}, we have: ${\begin{bmatrix} \left\lbrack {I^{N \times N}\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & \left\lbrack {I^{N \times N}\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} \end{bmatrix}_{{Nt} \times {Not}}\begin{bmatrix} b_{T}^{{\prime 1},1} \\ \vdots \\ b_{T}^{{\prime\quad o},1} \\ \vdots \\ b_{T}^{{\prime 1},t} \\ \vdots \\ b_{T}^{{\prime\quad o},t} \end{bmatrix}} \leq \left( {o - 1} \right)_{{Nt} \times 1}$

If we define: ${T_{A\quad 1} = \begin{bmatrix} T_{A_{1}}^{1,1} \\ \vdots \\ T_{A_{1}}^{o,1} \\ \vdots \\ T_{A_{1}}^{1,t} \\ \vdots \\ T_{A_{1}}^{o,t} \end{bmatrix}},{T_{A\quad 2} = \begin{bmatrix} T_{A_{2}}^{1,1} & \quad & \quad & \quad & \quad & \quad & \quad \\ \quad & ⋰ & \quad & \quad & \quad & \quad & \quad \\ \quad & \quad & T_{A_{2}}^{o,1} & \quad & \quad & \quad & \quad \\ \quad & \quad & \quad & ⋰ & \quad & \quad & \quad \\ \quad & \quad & \quad & \quad & T_{A_{2}}^{1,t} & \quad & \quad \\ \quad & \quad & \quad & \quad & \quad & ⋰ & \quad \\ \quad & \quad & \quad & \quad & \quad & \quad & T_{A_{2}}^{o,t} \end{bmatrix}}$ $T_{A\quad 3} = \begin{bmatrix} \left\lbrack {I^{N \times N}\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & \left\lbrack {I^{N \times N}\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} \end{bmatrix}_{{Nt} \times {Not}}$ ${T_{B\quad 1} = \begin{bmatrix} T_{B_{1}}^{1,1} \\ \vdots \\ T_{B_{1}}^{o,1} \\ \vdots \\ T_{B_{1}}^{1,t} \\ \vdots \\ T_{B_{1}}^{o,t} \end{bmatrix}},{x_{T\quad 1} = \begin{bmatrix} b_{T}^{1,1} \\ \vdots \\ b_{T}^{o,1} \\ \vdots \\ b_{T}^{1,t} \\ \vdots \\ b_{T}^{o,t} \end{bmatrix}},{x_{T\quad 2} = \begin{bmatrix} b_{T}^{{\prime 1},1} \\ \vdots \\ b_{T}^{{\prime\quad o},1} \\ \vdots \\ b_{T}^{{\prime 1},t} \\ \vdots \\ b_{T}^{{\prime\quad o},t} \end{bmatrix}}$ then we have: $\begin{bmatrix} {- \infty_{{{Nt}{({s_{1} + \ldots + s_{o}})}} \times 1}} \\ {- \infty_{{Not} \times 1}} \\ {- \infty_{{Nt} \times 1}} \end{bmatrix} \leq {\begin{bmatrix} T_{A\quad 1} & {- {MI}^{{Nt}{({s_{1} + \ldots + s_{o}})}}} & 0 \\ 0 & T_{A\quad 2} & {- {MI}^{Not}} \\ 0 & 0 & T_{A\quad 3} \end{bmatrix}\begin{bmatrix} u \\ x_{T\quad 1} \\ x_{T\quad 2} \end{bmatrix}} \leq \begin{bmatrix} T_{B\quad 1} \\ 0_{{Not} \times 1} \\ \left( {o - 1} \right)_{{Nt} \times 1} \end{bmatrix}$ and if we augment our new threat visibility constraints to our existing MILP problem formulation, expressed in symbolic form as: ${\min\limits_{x}{f(x)}} = {c^{T}x}$ b_(L) ≤ Ax ≤ b_(U) x_(L) ≤ x ≤ x_(U) then we have: ${\min\limits_{x}{f(x)}} = {{{\begin{bmatrix} c \\ 0_{{{Nt}{({s_{1} + \ldots + s_{o}})}} \times 1} \\ 0_{{Not} \times 1} \end{bmatrix}^{T}\begin{bmatrix} x \\ x_{T\quad 1} \\ x_{T\quad 2} \end{bmatrix}}\begin{bmatrix} b_{L} \\ {- \infty_{{{Nt}{({s_{1} + \ldots + s_{o}})}} \times 1}} \\ {- \infty_{{Not} \times 1}} \\ {- \infty_{{Nt} \times 1}} \end{bmatrix}} \leq {\begin{bmatrix} A & 0 & 0 \\ \left\lbrack {T_{A\quad 1}0} \right\rbrack & {- {MI}^{{Nt}{({s_{1} + \ldots + s_{o}})}}} & 0 \\ 0 & T_{A\quad 2} & {- {MI}^{Not}} \\ 0 & 0 & T_{A\quad 3} \end{bmatrix}\begin{bmatrix} x \\ x_{T\quad 1} \\ x_{T\quad 2} \end{bmatrix}} \leq {\begin{bmatrix} b_{U} \\ T_{B\quad 1} \\ 0_{{Not} \times 1} \\ \left( {o - 1} \right)_{{Nt} \times 1} \end{bmatrix}\begin{bmatrix} x_{L} \\ 0_{{{Nt}{({s_{1} + \ldots + s_{o}})}} \times 1} \\ 0_{{Not} \times 1} \end{bmatrix}} \leq \begin{bmatrix} x \\ x_{T\quad 1} \\ x_{T\quad 2} \end{bmatrix} \leq \begin{bmatrix} x_{U} \\ 1_{{{Nt}{({s_{1} + \ldots + s_{o}})}} \times 1} \\ 1_{{Not} \times 1} \end{bmatrix}}$

The disadvantage of the absolute threat visibility approach is that many problems with reasonably minimal (but not zero) visibility exposure to threats will be left out and some problems may have no solution as a result. A solution to this limitation is to construct a set of relative threat visibility constraints, where a vehicle is encouraged but not required to stay out of areas visible by threats, so that the resulting trajectory is the best balance between threat visibility, time, energy, and/or other optimality criteria:

As shown above, we have the following constraints for each combination of obstacle and threat −∞_([Ns) _(i) _(×1]) ≦T _(A) ₁ ^(i,j) u−MI ^(Ns) ^(i) ^(×Ns) ^(i) b _(T) ^(i,j) ≦T _(B) ₁ ^(i,j) −∞_([N×1]) ≦T _(A) ₂ ^(i,j) b _(T) ^(i,j) −MI ^(N×N) b′ _(T) ^(i,j)≦0_([N×1]) and we have the following constraint to guarantee no visibility to any threat j at time k: b′ _(k) ^(1,j) + . . . +b′ _(k) ^(o,j) ≦o−1

If we modify the above constraint to the following: b′ _(k) ^(1,j) + . . . +b′ _(k) ^(o,j) −Mb _(k) ^(j) ≦o−1

Then following the same argument used previously for the original constraint, we can show that b_(k) ^(j)=0 implies that the trajectory is invisible to threat j at time k. Although b_(k) ^(j)=1 does not imply that the trajectory is either visible or invisible from the threat, if we combine the above constraint with the following new cost function with a_(t)>0: f(x)=f _(old)(x)+a _(t)(b ₁ ¹ + . . . +b ₁ ^(t) + . . . +b _(N) ¹ + . . . +b _(N) ^(t))

Then we are associating a positive cost to any b_(k) ^(j) being 1, so that if the trajectory at time k is truly invisible to threat j, the solver would favor b_(k) ^(j)=0 over b_(k) ^(j)=1 as a solution which achieves a lower cost with everything else being the same. Thus it is safe to say that b_(k) ^(j)=1 implies that the trajectory is visible to threat j at time k. Therefore, with the modified cost function, we are essentially associating a positive cost to being visible to each threat, for each time step, and has the overall effect of encouraging the trajectory to remain invisible from threats for as long as practical.

To summarize our relative threat visibility constraints, we first express the following modified constraint for all kε{1, . . . , N}: b′ _(k) ^(1,j) + . . . +b′ _(k) ^(o,j) −Mb _(k) ^(j) ≦o−1 and define: $b_{T}^{j} = \begin{bmatrix} b_{1}^{j} \\ \vdots \\ b_{N}^{j} \end{bmatrix}$ and get: ${\begin{bmatrix} b_{1}^{{\prime 1},j} \\ \vdots \\ b_{N}^{{\prime 1},j} \end{bmatrix} + \ldots + \begin{bmatrix} b_{1}^{{\prime\quad o},\quad j} \\ \vdots \\ b_{N}^{{\prime\quad o},\quad j} \end{bmatrix} - {M\begin{bmatrix} b_{1}^{j} \\ \vdots \\ b_{N}^{j} \end{bmatrix}}} = {{b_{T}^{{\prime 1},j} + \ldots + b_{T}^{{\prime\quad o},j} - {Mb}_{T}^{j}} \leq \left( {o - 1} \right)_{N \times 1}}$ so that for all jε{1, . . . , t}, we have: ${{\left\lbrack {I^{N \times N}\cdots\quad I^{N \times N}} \right\rbrack\begin{bmatrix} b_{T}^{{\prime 1},j} \\ \vdots \\ b_{T}^{{\prime\quad o},j} \end{bmatrix}} - {{MI}^{N \times N}b_{T}^{j}}} \leq \left( {o - 1} \right)_{N \times 1}$

Finally, we have: ${{\begin{bmatrix} \left\lbrack {I^{N \times N}\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & \left\lbrack {I^{N \times N}\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} \end{bmatrix}_{{Nt} \times {Not}}\begin{bmatrix} b_{T}^{{\prime 1},1} \\ \vdots \\ b_{T}^{{\prime\quad o},1} \\ \vdots \\ b_{T}^{{\prime 1},t} \\ \vdots \\ b_{T}^{{\prime\quad o},t} \end{bmatrix}} - {{MI}^{{Nt} \times {Nt}}\begin{bmatrix} b_{T}^{1} \\ \vdots \\ b_{T}^{t} \end{bmatrix}}} \leq \left( {o - 1} \right)_{{Nt} \times 1}$

If we define: $x_{T\quad 3} = \begin{bmatrix} b_{T}^{1} \\ \vdots \\ b_{T}^{t} \end{bmatrix}$ and assume the previous definitions for T_(A1),T_(A2),T_(A3),T_(B1),x_(T1), and x_(T2) we have made in the previous section, then our relative threat visibility constraints would have the form: $\begin{bmatrix} {- \infty_{{{Nt}{({s_{1} + \ldots + s_{o}})}} \times 1}} \\ {- \infty_{{Not} \times 1}} \\ {- \infty_{{Nt} \times 1}} \end{bmatrix} \leq {\quad{{\begin{bmatrix} T_{A\quad 1} & {- {MI}^{{Nt}{({s_{1} + \ldots + s_{o}})}}} & 0 & 0 \\ 0 & T_{A\quad 2} & {- {MI}^{Not}} & 0 \\ 0 & 0 & T_{A\quad 3} & {- {MI}^{{Nt} \times {Nt}}} \end{bmatrix}\begin{bmatrix} u \\ x_{T\quad 1} \\ x_{T\quad 2} \\ x_{T\quad 3} \end{bmatrix}} \leq \begin{bmatrix} T_{B\quad 1} \\ 0_{{Not} \times 1} \\ \left( {o - 1} \right)_{{Nt} \times 1} \end{bmatrix}}}$ and if we augment our new threat visibility constraints to our existing MILP problem formulation, expressed in symbolic form as: ${\min\limits_{x}{f(x)}} = {c^{T}x}$ b_(L) ≤ Ax ≤ b_(U) x_(L) ≤ x ≤ x_(U) then we have: ${\min\limits_{x}\quad{f(x)}} = {{{\begin{bmatrix} c \\ 0_{{{Nt}{({s_{1}\quad + \quad\ldots\quad + \quad s_{o}})}} \times 1} \\ 0_{{Not} \times 1} \\ a_{t{\lbrack{{Nt} \times 1}\rbrack}} \end{bmatrix}^{T}\begin{bmatrix} x \\ x_{T\quad 1} \\ x_{T\quad 2} \\ x_{T\quad 3} \end{bmatrix}}\begin{bmatrix} b_{L} \\ {- \infty_{{{Nt}{({s_{1} + \ldots + s_{o}})}} \times 1}} \\ {- \infty_{{Not} \times 1}} \\ {- \infty_{{Nt} \times 1}} \end{bmatrix}} \leq {\quad{{\begin{bmatrix} A & 0 & 0 & 0 \\ \left\lbrack {T_{A\quad 1}0} \right\rbrack & {- {MI}^{{Nt}{({s_{1} + \ldots + s_{o}})}}} & 0 & 0 \\ 0 & T_{A\quad 2} & {- {MI}^{Not}} & 0 \\ 0 & 0 & T_{A\quad 3} & {- {MI}^{{Nt} \times {Nt}}} \end{bmatrix}\begin{bmatrix} x \\ x_{T\quad 1} \\ x_{T\quad 2} \\ x_{T\quad 3} \end{bmatrix}} \leq {\begin{bmatrix} b_{U} \\ T_{B\quad 1} \\ 0_{{Not} \times 1} \\ \left( {o - 1} \right)_{{Nt} \times 1} \end{bmatrix}\begin{bmatrix} x_{L} \\ 0_{{{Nt}{({s_{1} + \ldots + s_{o}})}} \times 1} \\ 0_{{Not} \times 1} \\ 0_{{Nt} \times 1} \end{bmatrix}} \leq \begin{bmatrix} x \\ x_{T\quad 1} \\ x_{T\quad 2} \\ x_{T\quad 3} \end{bmatrix} \leq \begin{bmatrix} x_{U} \\ 1_{{{Nt}{({s_{1} + \ldots + s_{o}})}} \times 1} \\ 1_{{Not} \times 1} \\ 1_{{Nt} \times 1} \end{bmatrix}}}}$

Suppose we wish to generate an optimal trajectory that allows a vehicle to see a number of surveillance targets (not necessarily at the same time), i.e. for bomb damage assessment in an urban environment. In other words, we require that, for each surveillance target, the vehicle must visit at least one location from which the target is within line-of-sight of the vehicle. We recall from the previous section that in terms of visibility from threats, safe zones are easier to implement than unsafe zones. Therefore, if we consider the surveillance targets as threats, and safe (or unsafe) zones as locations from which one cannot (or can) see the target, in order to conduct such a surveillance mission, for each threat, one has to be outside all of the safe zones associated with that threat for at least one time step in the planned trajectory. Now, because our solution requires the trajectory to be outside of safe zones, we adopt the basic problem formulations we have established for obstacles as considered above. We recall the following constraints for an obstacle defined by s planar constraints: $\begin{matrix} {{{\theta_{\quad 1}s_{\quad k}} - {Mb}_{\quad k_{\quad 1}}} \leq \theta_{\quad 1}^{\quad\prime}} \\ \vdots \\ {{{\theta_{\quad s}s_{\quad k}} - {Mb}_{\quad k_{\quad s}}} \leq \theta_{\quad s}^{\quad\prime}} \\ {{b_{k_{1}} + \ldots + b_{k_{s}}} \leq {s - 1}} \end{matrix}$

The last of the constraints, namely: b _(k) ₁ + . . . +b _(k) _(s) ≦s−1 needs to be changed to the following: b _(k) ₁ + . . . +b _(k) _(s) −Mb′ _(k) ≦s−1 b′_(k)ε{0,1} so that just as the original constraint, b _(k) ₁ + . . . +b _(k) _(s) ≦s−1, requires that s_(k) be outside the obstacle, with our modified constraints, b′_(k)=0 implies that s_(k) is outside the safe zone at time k.

If we set: ${\theta = \begin{bmatrix} \theta_{1} \\ \vdots \\ \theta_{s} \end{bmatrix}},{b_{k} = \begin{bmatrix} b_{k_{1}} \\ \vdots \\ b_{k_{s}} \end{bmatrix}},{\theta^{\prime} = \begin{bmatrix} \theta_{1}^{\prime} \\ \vdots \\ \theta_{s}^{\prime} \end{bmatrix}}$

The above inequalities become: θs _(k) −Mb _(k)≦θ′ b _(k) ₁ + . . . +b _(k) _(s) −Mb′ _(k) ≦s−1

We follow similar manipulation steps as shown above to reduce the above constraints to the following: ${{\begin{bmatrix} {\theta\quad B} & 0 & \cdots & 0 \\ {\theta\quad{AB}} & {\theta\quad B} & ⋰ & \vdots \\ \vdots & \quad & ⋰ & 0 \\ {\theta\quad A^{N\quad - \quad 1}\quad B} & {\cdots\quad} & {\theta\quad{AB}} & {\theta\quad B} \end{bmatrix}\begin{bmatrix} u_{1} \\ \vdots \\ u_{N} \end{bmatrix}} + {\begin{bmatrix} {- {MI}^{s \times s}} & 0 & \cdots & 0 \\ 0 & ⋰ & ⋰ & \vdots \\ \vdots & ⋰ & ⋰ & 0 \\ 0 & \cdots & 0 & {- {MI}^{s \times s}} \end{bmatrix}\begin{bmatrix} b_{1} \\ \vdots \\ b_{N} \end{bmatrix}}} \leq {{{\begin{bmatrix} {\theta^{\prime} - {\theta\quad{As}_{0}}} \\ \vdots \\ {\theta^{\prime} - {\theta\quad A^{N}s_{0}}} \end{bmatrix}\begin{bmatrix} \left\lbrack {1\cdots\quad 1} \right\rbrack_{\lbrack{1 \times s}\rbrack} & 0 & \cdots & 0 \\ 0 & ⋰ & ⋰ & \vdots \\ \vdots & ⋰ & ⋰ & 0 \\ 0 & \cdots & 0 & \left\lbrack {1\cdots\quad 1} \right\rbrack_{\lbrack{1 \times s}\rbrack} \end{bmatrix}}\begin{bmatrix} b_{1} \\ \vdots \\ b_{N} \end{bmatrix}} + {\begin{bmatrix} {- M} & 0 & 0 \\ 0 & ⋰ & 0 \\ 0 & 0 & {- M} \end{bmatrix}\begin{bmatrix} b_{1}^{\prime} \\ \vdots \\ b_{N}^{\prime} \end{bmatrix}}} \leq \begin{bmatrix} {s - 1} \\ \vdots \\ {s - 1} \end{bmatrix}$

If we define: ${S_{A_{1}} = \begin{bmatrix} {\theta\quad B} & 0 & \cdots & 0 \\ {\theta\quad{AB}} & {\theta\quad B} & ⋰ & \vdots \\ \vdots & \quad & ⋰ & 0 \\ {\theta\quad A^{N - 1}B} & {\cdots\quad} & {\theta\quad{AB}} & {\theta\quad B} \end{bmatrix}},{S_{B_{1}} = \begin{bmatrix} {\theta^{\prime} - {\theta\quad{As}_{0}}} \\ \vdots \\ {\theta^{\prime} - {\theta\quad A^{N}s_{0}}} \end{bmatrix}},{b_{S} = \begin{bmatrix} b_{1} \\ \vdots \\ b_{N} \end{bmatrix}},{b_{S}^{\prime} = \begin{bmatrix} b_{1}^{\prime} \\ \vdots \\ b_{N}^{\prime} \end{bmatrix}}$ $S_{A_{2}} = \begin{bmatrix} \left\lbrack {1\cdots\quad 1} \right\rbrack_{\lbrack{1 \times s}\rbrack} & 0 & \cdots & 0 \\ 0 & ⋰ & ⋰ & \vdots \\ \vdots & ⋰ & ⋰ & 0 \\ 0 & \cdots & 0 & \left\lbrack {1\cdots\quad 1} \right\rbrack_{\lbrack{1 \times s}\rbrack} \end{bmatrix}$

Then the constraints become: −∞_([Ns×1]) ≦S _(A) ₁ u−MI ^(Ns×Ns) b _(s) ≦S _(B) ₁ −∞_([N×1]) ≦S _(A) ₂ b _(s) −MI ^(N×N) b′ _(s)≦(s−1)_([N×1])

Since in general we have multiple surveillance targets and multiple obstacles, we have multiple safe zones, with each zone associated with a target and an obstacle. We define the above safe zone constraints for each combination of obstacle i and target j: −∞_([Ns) _(i) _(×1]) ≦S _(A) ₁ ^(i,j) u−MI ^(Ns) ^(i) ^(×Ns) ^(i) b _(s) ^(i,j) ≦S _(B) ₁ ^(i,j) −∞_([N×1]) ≦S _(A) ₂ ^(i,j) b _(s) ^(i,j) −MI ^(N×N) b′ _(s) ^(i,j)≦(s _(i)−1)_([N×1])

From an earlier argument, b′_(k) ^(i,j)=0 implies that the trajectory is outside the safe zone associated with obstacle i and surveillance target j at time k. We have the following constraint for each target jε{1, . . . , t} and time kε{1, . . . , N}: b′_(k) ^(1,j) + . . . +b′ _(k) ^(o,j) −Mb _(k) ^(j)≦0

It is clear that b_(k) ^(j)=0 implies that b′_(k) ^(i,j)=0 for all obstacles iε{1, . . . , o}, that is, the trajectory is outside of all the safe zones of target j at time k and is therefore visible to target j. In order to require that, for each surveillance target j, the desired trajectory is outside all of the safe zones associated with that target for at least one time step, we have the following constraint for each target jε{1, . . . , t}: b ₁ ^(j) + . . . +b _(N) ^(j) ≦N−1

This requires that b_(k) ^(j)=0 or at least one time step k for each target j. That is, for each surveillance target, the trajectory is within line-of-sight of the target at least once in its trajectory.

If we express the following: −∞_([Ns) _(i) _(×1]) ≦S _(A) ₁ ^(i,j) u−MI ^(Ns) ^(i) ^(×Ns) ^(i) b _(s) ^(i,j) ≦S _(B) ₁ ^(i,j) −∞_([N×1]) ≦S _(A) ₂ ^(i,j) b _(s) ^(i,j) −MI ^(N×N) b′ _(s) ^(i,j)≦(s _(i)−1)_([N×1]) in matrix form for all iε{1, . . . , o}, jε{1, . . . , t . . . , t}, then we have: ${{\begin{bmatrix} S_{A_{1}}^{1,1} \\ \vdots \\ S_{A_{1}}^{o,1} \\ \vdots \\ S_{A_{1}}^{1,t} \\ \vdots \\ S_{A_{1}}^{o,t} \end{bmatrix}u} + {\begin{bmatrix} {- {MI}^{{Ns}_{1}}} & \quad & \quad & \quad & \quad & \quad & \quad \\ \quad & ⋰ & \quad & \quad & \quad & \quad & \quad \\ \quad & \quad & {- {MI}^{{Ns}_{o}}} & \quad & \quad & \quad & \quad \\ \quad & \quad & \quad & ⋰ & \quad & \quad & \quad \\ \quad & \quad & \quad & \quad & {- {MI}^{{Ns}_{1}}} & \quad & \quad \\ \quad & \quad & \quad & \quad & \quad & ⋰ & \quad \\ \quad & \quad & \quad & \quad & \quad & \quad & {- {MI}^{{Ns}_{o}}} \end{bmatrix}\begin{bmatrix} b_{S}^{1,1} \\ \vdots \\ b_{S}^{o,1} \\ \vdots \\ b_{S}^{1,t} \\ \vdots \\ b_{S}^{o,t} \end{bmatrix}}} \leq {{{\begin{bmatrix} S_{B_{1}}^{1,1} \\ \vdots \\ S_{B_{1}}^{o,1} \\ \vdots \\ S_{B_{1}}^{1,t} \\ \vdots \\ S_{B_{1}}^{o,t} \end{bmatrix}\begin{bmatrix} S_{A_{2}}^{1,1} & \quad & \quad & \quad & \quad & \quad & \quad \\ \quad & ⋰ & \quad & \quad & \quad & \quad & \quad \\ \quad & \quad & S_{A_{2}}^{o,1} & \quad & \quad & \quad & \quad \\ \quad & \quad & \quad & ⋰ & \quad & \quad & \quad \\ \quad & \quad & \quad & \quad & S_{A_{2}}^{1,t} & \quad & \quad \\ \quad & \quad & \quad & \quad & \quad & ⋰ & \quad \\ \quad & \quad & \quad & \quad & \quad & \quad & S_{A_{2}}^{o,t} \end{bmatrix}}\begin{bmatrix} b_{S}^{1,1} \\ \vdots \\ b_{S}^{o,1} \\ \vdots \\ b_{S}^{1,t} \\ \vdots \\ b_{S}^{o,t} \end{bmatrix}} - {{MI}^{{Not} \times {Not}}\begin{bmatrix} b_{S}^{{\prime 1},1} \\ \vdots \\ b_{S}^{{\prime o},1} \\ \vdots \\ b_{S}^{{\prime 1},t} \\ \vdots \\ b_{S}^{{\prime o},t} \end{bmatrix}}} \leq \begin{bmatrix} \left( {s_{1} - 1} \right)_{\lbrack{N \times 1})} \\ \vdots \\ \left( {s_{o} - 1} \right)_{\lbrack{N \times 1}\rbrack} \\ \vdots \\ \left( {s_{1} - 1} \right)_{\lbrack{N \times 1}\rbrack} \\ \vdots \\ \left( {s_{o} - 1} \right)_{\lbrack{N \times 1}\rbrack} \end{bmatrix}$

If we express the following: b′ _(k) ^(1,j) + . . . +b′ _(k) ^(o,j) −Mb _(k) ^(j)≦0 in matrix form for all jε{1, . . . , t}, kε{1, . . . , N}, and define: $b_{S}^{j} = \begin{bmatrix} b_{1}^{j} \\ \vdots \\ b_{N}^{j} \end{bmatrix}$ we first notice that: ${\begin{bmatrix} b_{1}^{{\prime 1},j} \\ \vdots \\ b_{N}^{{\prime 1},j} \end{bmatrix} + \ldots + \begin{bmatrix} b_{1}^{{\prime o},j} \\ \vdots \\ b_{N}^{{\prime o},j} \end{bmatrix} - {M\begin{bmatrix} b_{1}^{j} \\ \vdots \\ b_{N}^{j} \end{bmatrix}}} = {{b_{S}^{{\prime 1},j} + \ldots + b_{S}^{{\prime o},j} - {Mb}_{S}^{j}} \leq 0_{N \times 1}}$ so that for all jε{1, . . . , t}, we have: ${{\left\lbrack {I^{N \times N}\quad\cdots\quad I^{N \times N}} \right\rbrack\begin{bmatrix} b_{S}^{{\prime 1},j} \\ \vdots \\ b_{S}^{{\prime o},j} \end{bmatrix}} - {{MI}^{N \times N}b_{S}^{j}}} \leq 0_{N \times 1}$

Finally, by summing up all jε{1, . . . , t}, we have: ${{\begin{bmatrix} \left\lbrack {I^{N \times N}\quad\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & \left\lbrack {I^{N \times N}\quad\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} \end{bmatrix}_{{Nt} \times {Not}}\begin{bmatrix} b_{S}^{{\prime 1},1} \\ \vdots \\ b_{S}^{{\prime o},1} \\ \vdots \\ b_{S}^{{\prime 1},t} \\ \vdots \\ b_{S}^{{\prime o},t} \end{bmatrix}} - {{MI}^{{Nt} \times {Nt}}\begin{bmatrix} b_{S}^{1} \\ \vdots \\ b_{S}^{t} \end{bmatrix}}} \leq 0_{N \times 1}$

If we express the remaining constraint: b ₁ ^(j) + . . . +b _(N) ^(j) ≦N−1 in matrix form for jε{1, . . . , t}, we have: ${\left\lbrack {1\quad\cdots\quad 1} \right\rbrack\begin{bmatrix} b_{1}^{j} \\ \vdots \\ b_{N}^{j} \end{bmatrix}} = {{\left\lbrack {1\quad\cdots\quad 1} \right\rbrack b_{S}^{j}} \leq {N - 1}}$ so that by summing up all jε{1, . . . , t}, we have: ${\begin{bmatrix} \left\lbrack {1\quad\cdots\quad 1} \right\rbrack_{1 \times N} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & \left\lbrack {1\quad\cdots\quad 1} \right\rbrack_{1 \times N} \end{bmatrix}\begin{bmatrix} b_{S}^{1} \\ \vdots \\ b_{S}^{t} \end{bmatrix}} \leq \left( {N - 1} \right)_{t \times 1}$

If we set: ${S_{A\quad 1} = \begin{bmatrix} S_{A_{1}}^{1,1} \\ \vdots \\ S_{A_{1}}^{o,1} \\ \vdots \\ S_{A_{1}}^{1,t} \\ \vdots \\ S_{A_{1}}^{o,t} \end{bmatrix}},{S_{A\quad 2} = \begin{bmatrix} S_{A_{2}}^{1,1} & \quad & \quad & \quad & \quad & \quad & \quad \\ \quad & ⋰ & \quad & \quad & \quad & \quad & \quad \\ \quad & \quad & S_{A_{2}}^{o,1} & \quad & \quad & \quad & \quad \\ \quad & \quad & \quad & ⋰ & \quad & \quad & \quad \\ \quad & \quad & \quad & \quad & S_{A_{2}}^{1,t} & \quad & \quad \\ \quad & \quad & \quad & \quad & \quad & ⋰ & \quad \\ \quad & \quad & \quad & \quad & \quad & \quad & S_{A_{2}}^{o,t} \end{bmatrix}}$ $S_{A\quad 3} = \begin{bmatrix} \left\lbrack {I^{N \times N}\quad\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & \left\lbrack {I^{N \times N}\quad\cdots\quad I^{N \times N}} \right\rbrack_{N \times {No}} \end{bmatrix}_{{Nt} \times {Not}}$ $S_{A\quad 4} = \begin{bmatrix} \left\lbrack {I\quad\cdots\quad I} \right\rbrack_{1 \times N} & \quad & \quad \\ \quad & ⋰ & \quad \\ \quad & \quad & \left\lbrack {I\quad\cdots\quad I} \right\rbrack_{1 \times N} \end{bmatrix}_{t \times {Nt}}$ ${S_{B\quad 1} = \begin{bmatrix} S_{B_{1}}^{1,1} \\ \vdots \\ S_{B_{1}}^{o,1} \\ \vdots \\ S_{B_{1}}^{1,t} \\ \vdots \\ S_{B_{1}}^{o,t} \end{bmatrix}},{S_{B\quad 2} = {{\begin{bmatrix} \left( {s_{1} - 1} \right)_{\lbrack{N \times 1}\rbrack} \\ \vdots \\ \left( {s_{o} - 1} \right)_{\lbrack{N \times 1}\rbrack} \\ \vdots \\ \left( {s_{1} - 1} \right)_{\lbrack{N \times 1}\rbrack} \\ \vdots \\ \left( {s_{o} - 1} \right)_{\lbrack{N \times 1}\rbrack} \end{bmatrix}x_{S\quad 1}} = \begin{bmatrix} b_{S}^{1,1} \\ \vdots \\ b_{S}^{o,1} \\ \vdots \\ b_{S}^{1,t} \\ \vdots \\ b_{S}^{o,t} \end{bmatrix}}},{x_{S\quad 2} = \begin{bmatrix} b_{S}^{{\prime 1},1} \\ \vdots \\ b_{S}^{{\prime o},1} \\ \vdots \\ b_{S}^{{\prime 1},t} \\ \vdots \\ b_{S}^{{\prime o},t} \end{bmatrix}},{x_{S\quad 3} = \begin{bmatrix} b_{S}^{1} \\ \vdots \\ b_{S}^{t} \end{bmatrix}}$ then we have: $\begin{bmatrix} {- \infty_{{{Nt}{({s_{1} + \cdots + s_{o}})}} \times 1}} \\ {- \infty_{{Not} \times 1}} \\ {- \infty_{{Nt} \times 1}} \\ {- \infty_{t \times 1}} \end{bmatrix} \leq {\begin{bmatrix} S_{A\quad 1} & {- {MI}^{{Nt}{({s_{1} + \cdots + s_{o}})}}} & 0 & 0 \\ 0 & S_{A\quad 2} & {- {MI}^{Not}} & 0 \\ 0 & 0 & S_{A\quad 3} & {- {MI}^{{Nt} \times {Nt}}} \\ 0 & 0 & 0 & S_{A\quad 4} \end{bmatrix}\left\lbrack \quad\begin{matrix} u \\ x_{S\quad 1} \\ x_{S\quad 2} \\ x_{S\quad 3} \end{matrix} \right\rbrack} \leq \begin{bmatrix} S_{B\quad 1} \\ S_{B\quad 2} \\ 0_{{Nt} \times 1} \\ \left( {N - 1} \right)_{t \times 1} \end{bmatrix}$ and if we augment our new surveillance target visibility constraints to our existing MILP problem formulation, expressed in symbolic form as: ${\min\limits_{x}{f(x)}} = {c^{T}x}$ b_(L) ≤ Ax ≤ b_(U) x_(L) ≤ x ≤ x_(U) then we have: $\begin{matrix} {{\min\limits_{x}{f(x)}} = {{{\begin{bmatrix} c \\ 0_{{{Nt}{({s_{1} + \cdots + s_{o}})}} \times 1} \\ 0_{{Not} \times 1} \\ 0_{{Nt} \times 1} \end{bmatrix}^{T}\begin{bmatrix} x \\ x_{S\quad 1} \\ x_{S\quad 2} \\ x_{S\quad 3} \end{bmatrix}}\begin{bmatrix} b_{L} \\ {- \infty_{{{Nt}{({s_{1} + \cdots + s_{o}})}} \times 1}} \\ {- \infty_{{Not} \times 1}} \\ {- \infty_{{Nt} \times 1}} \\ {- \infty_{t \times 1}} \end{bmatrix}} \leq}} \\ {{\begin{bmatrix} A & 0 & 0 & 0 \\ \left\lbrack {S_{A\quad 1}0} \right\rbrack & {- {MI}^{{Nt}{({s_{1} + \cdots + s_{o}})}}} & 0 & 0 \\ 0 & S_{A\quad 2} & {- {MI}^{Not}} & 0 \\ 0 & 0 & S_{A\quad 3} & {- {MI}^{{Nt} \times {Nt}}} \\ 0 & 0 & 0 & S_{A\quad 4} \end{bmatrix}\begin{bmatrix} x \\ x_{S\quad 1} \\ x_{S\quad 2} \\ x_{S\quad 3} \end{bmatrix}} \leq} \\ {{\begin{bmatrix} b_{U} \\ S_{B\quad 1} \\ S_{B\quad 2} \\ 0_{{Nt} \times 1} \\ \left( {N - 1} \right)_{t \times 1} \end{bmatrix}\begin{bmatrix} x_{L} \\ 0_{{{Nt}{({s_{1} + \cdots + s_{o}})}} \times 1} \\ 0_{{Not} \times 1} \\ 0_{{Nt} \times 1} \end{bmatrix}} \leq} \\ {\begin{bmatrix} x \\ x_{S\quad 1} \\ x_{S\quad 2} \\ x_{S\quad 3} \end{bmatrix} \leq \begin{bmatrix} x_{U} \\ 1_{{{Nt}{({s_{1} + \cdots + s_{o}})}} \times 1} \\ 1_{{Not} \times 1} \\ 1_{{Nt} \times 1} \end{bmatrix}} \end{matrix}$

Safe zones are easier to calculate than unsafe zones because the overall safe zone for multiple threats and multiple obstacles is the intersection of the union of safe zones, with each of the unions associated with a threat. Furthermore, the safe zone associated with one threat and one obstacle can be calculated individually. This can be done in algorithmic form.

The following is description for this procedure:

1. For each face of polyhedral (obstacle), check if it faces threat. The dot product of the normal of the face n and the vector originating from the threat t to any point on the face p must be negative, namely, n·(p−t)<0.

2. If it does, find all edges that border faces that don't face the threat. The determination of whether the border faces actually face the threat is similar.

3. For each of these edges, it is defined by two end points p1, p2 combined with threat point t (3 total). This defines a plane. In general, a plane can be defined by the equation n≠p=n≠p*, where n is the normal of the plane, p={x, y, z}, and p* is any point on the plane. For a planar boundary in the form n·p≧n·p*, we follow the convention that the normal n points outside the object, so that points denoting the edges of the face need to be assigned to p1 and p2 in a counterclockwise fashion, as seen by the threat. For example, for the left most edge of the left face of the pyramid 90 of FIG. 11, as seen by the eye (the threat), p1 would be the top of the pyramid and p2 would be at the base. We use this to define a planar boundary by setting n=(p1−t)×(p2−t) and by setting p*=t.

4. The collection of these planes, plus the aforementioned “front faces” make up the boundaries for a safe zone.

We may define some obstacles to be bottomless, where we rely on the ground plane to bound the bottom of the obstacle. In this case, we would still need “virtual” or abstract points at the bottom of the obstacle to allow us to properly define the side edges using the above algorithm. We would never define any edge based on any two abstract points, however, because we have no need to bound the safe zone from below the ground plane.

Due to the complexity of a typical obstacle avoidance problem and the need to solve it in real-time, the overall obstacle avoidance problem is best solved in smaller parts. Consider an all-encompassing MILP obstacle avoidance problem with a small time discretization value (T) and long planning horizon (N), so that the problem can account for small obstacles and still maintain a big picture view of the obstacle field and terrain. This problem would be very large and would require a long solve time.

More reasonable solve times can be achieved while retaining the desired effects of small time discretization and long planning horizon by constructing and solving a number of smaller, simpler MILP problems in series. Doing so takes advantage of an important property of an obstacle avoidance problem, in that it is inherently of multiple timescales. That is, using the concept of abstraction, the problem can be naturally decomposed into subproblems of largest timescales (terrain navigation), medium timescales (urban obstacle avoidance), and smallest timescales (rounding corners of buildings, skimming surface of terrain, and avoiding trees and small objects). The longer timescale problems would perform longer range planning such as terrain navigation, while the shorter timescale problems would refine the solutions provided by the longer timescale problems to account for smaller obstacles.

FIG. 13 illustrates the concept of multiple timescales with a two timescale example. This introduces the notion of an execution horizon, which denotes the subset of the planned trajectory to be executed. In general, the execution horizon is shorter than the planning horizon, but they can be equal. In conjunction with time discretization (T) and planning horizon (N), these three parameters determine how the problems from different timescales will be integrated. The sequence starts when the longest timescale MILP path planning problem is formulated and solved with s_(o) at the current vehicle location, and SF the true destination. The solution at the end of its execution horizon is taken as the destination SF for the next shorter timescale problem, reusing the same s_(o). The solution at the end of the new problem's execution horizon is then taken as the s_(F) of the next one, and so on, while reusing the same s_(o). This sequence ends when the solution of the shortest timescale solution is given as a series of waypoints for the vehicle to follow. When the vehicle reaches the waypoint corresponding to the end of the shortest timescale problem's execution horizon, this location is designated the new s_(o) and the entire sequence starts anew, until the true destination is reached or changed.

Next consider non-uniform time steps. Notice that many of the MILP constraints presented in the previous sections are based on the following equations: s ₁ As _(o) +Bu ₁ s ₂ =A ² s _(o) +ABu ₁ +Bu ₂ s ₃ =A ³ s _(o) +A ² Bu ₁ +ABu ₂ +Bu ₃ . . . s _(k) =A ^(k) s _(o) +A ^(k-1) Bu ₁ + . . . +Abu _(k-1) +Bu _(k)

That is, every type of MILP constraints (i.e. for altitude) is instantiated for each time step iε{1, . . . , N} of the MILP problem. This is because the MILP problem is posed as an optimization problem for a path consisting of the trajectory point s_(k) for each time step kε{1, . . . , N}. This uniform stepping of time is not required, and not always desirable. For instance, for an identically-sized MILP problem one might prefer a nonlinear scaling of time so that time is more sparsely captured further into the future and more finely represented closer to the present. For example, instead of planning for s_(k), kε{1, . . . , N} we can have kε{1, 2, 4, 8, . . . }. We can achieve this by doing the following: s ₁ =As ₀ +Bu ₁ s ₂ =A ² s ₀ +ABu ₁ +Bu ₂ s ₄ =A ⁴ s ₀ +A ³ Bu ₁ +A ² Bu ₂ +ABu ₄ +Bu ₄ s ₈ =A ⁸ s ₀ +ABu ₁ +A ⁶ Bu ₂ +A ⁵ Bu ₄ +A ⁴ Bu ₄ +A ³ Bu ₈ +A ² Bu ₈ +ABu ₈ +Bu ₈

By choosing a coarser representation of time further into the future, the problem is now simplified by having to plan for fewer time steps because the controls u_(k) for multiple time steps are combined into one (i.e. u₃=u₄). With this method of non-uniform time steps, we are able to construct a MILP problem with the same planning horizon with fewer time steps and therefore smaller problem size, or alternatively, for a problem with the same problem size, we can have a longer planning horizon.

While the invention has been described in terms of particular embodiments, it will be apparent to those skilled in the art that various changes can be made to the disclosed embodiments without departing from the invention as set forth in the following claims. 

1. A method of planning a path of a vehicle, the method comprising the steps of: defining a first plurality of constraints representing dynamics of the vehicle; defining a second plurality of constraints representing collisions with obstacles; defining a third plurality of constraints representing visibility to threats; and using the first, second and third plurality of constraints with mixed integer linear programming to generate a trajectory for a vehicle from a starting point to a destination point in an environment containing the obstacles and the threats.
 2. The method of claim 1, wherein the first plurality of constraints comprise continuous constraints including one or more of: velocity constraints, slack variable constraints for energy and time, and control limits.
 3. The method of claim 1, wherein the second plurality of constraints are integer constraints.
 4. The method of claim 1, wherein the mixed integer linear programming is implemented as a receding horizon algorithm.
 5. The method of claim 1, further comprising the step of: associating a cost to the trajectory that is proportional to the altitude at each of a plurality of points between the starting point and the destination point.
 6. The method of claim 1, wherein trajectory is a nap-of-the-earth trajectory that utilizes obstacles to minimize detection of a vehicle.
 7. The method of claim 1, wherein the mixed integer linear programming is implemented using multiple time scales.
 8. The method of claim 7, wherein a longest one of the multiple time scales is implemented first.
 9. The method of claim 1, further comprising the steps of: defining a fourth plurality of constraints representing terrain; and using the fourth plurality of constraints with the mixed integer linear programming to generate the trajectory.
 10. The method of claim 1, wherein the third plurality of constraints are modeled as either safe zones or unsafe zones.
 11. The method of claim 10, wherein each safe zone is bounded by sides of an obstacle that face the threat and planes that intersect the threat and edges of the sides.
 12. A method of controlling a path of a vehicle, the method comprising the steps of: defining a first plurality of constraints representing dynamics of the vehicle; defining a second plurality of constraints representing collision constraints with obstacles; defining a third plurality of constraints representing visibility to threats; and using the first, second and third plurality of constraints and mixed integer linear programming to generate a set of control actions to move the vehicle from a starting point to a destination point.
 13. The method of claim 12, wherein the first plurality of constraints comprise continuous constraints including one or more of: velocity constraints, slack variable constraints for energy and time, and control limits.
 14. The method of claim 12, wherein the second plurality of constraints are integer constraints.
 15. The method of claim 12, wherein the mixed integer linear programming is implemented as a receding horizon algorithm.
 16. The method of claim 12, further comprising the step of: associating a cost to the trajectory that is proportional to the altitude at each of a plurality of points between the starting point and the destination point.
 17. The method of claim 12, wherein trajectory is a nap-of-the-earth trajectory that utilizes obstacles to minimize detection of a vehicle.
 18. The method of claim 12, wherein the mixed integer linear programming is implemented using multiple time scales.
 19. The method of claim 18, wherein a longest one of the multiple time scales is implemented first.
 20. The method of claim 12, further comprising the steps of: defining a fourth plurality of constraints representing terrain; and using the fourth plurality of constraints with the mixed integer linear programming to generate the trajectory.
 21. The method of claim 12, wherein the third plurality of constraints are modeled as either safe zones or unsafe zones.
 22. The method of claim 21, wherein each safe zone is bounded by sides of an obstacle that face the threat and planes that intersect the threat and edges of the sides. 